/** * Retrieves the modules settings from the service and updates the filter. */ public void refreshRestletCloudFilterIfRevisionChanged() { try { ModulesSettings newModulesSettings = ModulesSettingsModule .getModulesSettings(restletCloudConfig, modulesSettings); if (newModulesSettings != null) { modulesSettings = newModulesSettings; LOGGER.info("Updating modules settings"); refreshRestletCloudFilter(); } } catch (Exception e) { LOGGER.log(Level.WARNING, "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service and updates the filter. */ public void refreshRestletCloudFilterIfRevisionChanged() { try { ModulesSettings newModulesSettings = ModulesSettingsModule .getModulesSettings(restletCloudConfig, modulesSettings); if (newModulesSettings != null) { modulesSettings = newModulesSettings; LOGGER.info("Updating modules settings"); refreshRestletCloudFilter(); } } catch (Exception e) { LOGGER.log(Level.WARNING, "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service and updates the filter. */ public void refreshRestletCloudFilterIfRevisionChanged() { try { ModulesSettings newModulesSettings = ModulesSettingsModule .getModulesSettings(restletCloudConfig, modulesSettings); if (newModulesSettings != null) { modulesSettings = newModulesSettings; LOGGER.info("Updating modules settings"); refreshRestletCloudFilter(); } } catch (Exception e) { LOGGER.log(Level.WARNING, "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service and updates the filter. */ public void refreshRestletCloudFilterIfRevisionChanged() { try { ModulesSettings newModulesSettings = ModulesSettingsModule .getModulesSettings(restletCloudConfig, modulesSettings); if (newModulesSettings != null) { modulesSettings = newModulesSettings; LOGGER.info("Updating modules settings"); refreshRestletCloudFilter(); } } catch (Exception e) { LOGGER.log(Level.WARNING, "Unable to retrieve agent settings from platform", e); } }
/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }
/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }
/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }
/** * Create a new RestletCloudFilter with the specified configuration. * * @param context * The current context. * @param restletCloudConfig * The RestletCloudService configuration. */ public RestletCloudFilter(Context context, RestletCloudConfig restletCloudConfig, boolean agentEnabled, boolean firewallEnabled, List<FirewallRule> firewallRules) { super(context); this.firewallRules = firewallRules; this.firewallEnabled = firewallEnabled; this.restletCloudConfig = restletCloudConfig; this.agentEnabled = agentEnabled; this.context = context; validateRedirection(restletCloudConfig); if (agentEnabled) { validateAgentConfiguration(restletCloudConfig); modulesSettings = ModulesSettingsModule.getModulesSettings( restletCloudConfig, null); } refreshRestletCloudFilter(); }