/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }