// pass false, so we don't interrupt a plugin in the middle of a config update
PluginContainer.shutdownExecutorService(threadPool, false);
}
public void updateResourceConfiguration(ConfigurationUpdateRequest request) {
ConfigurationServerService configurationServerService = getConfigurationServerService();
try {
ConfigManagement configMgmt = configMgmtFactory.getStrategy(request.getResourceId());
ResourceType resourceType = componentService.getResourceType(request.getResourceId());
Runnable runnable = new UpdateResourceConfigurationRunner(configurationServerService, resourceType,
configMgmt, request);
getThreadPool().submit(runnable);
} catch (PluginContainerException e) {
log.error("Failed to submit config update task. Cause: " + e);
if (configurationServerService != null) {
ConfigurationUpdateResponse error;
error = new ConfigurationUpdateResponse(request.getConfigurationUpdateId(), request.getConfiguration(),
e);
configurationServerService.completeConfigurationUpdate(error);
}
}
return;
}