use of com.axway.ats.agent.webapp.client.configuration.RemoteConfigurationManager in project ats-framework by Axway.
the class EnvironmentCleanupClient method pushConfiguration.
/**
* Apply the new settings
*
* @param agentSettings a list with Agent settings to change
* @throws AgentException
*/
private void pushConfiguration(Configurator configurator) throws AgentException {
List<Configurator> configurators = new ArrayList<Configurator>();
configurators.add(configurator);
if (atsAgent.equals(LOCAL_JVM)) {
// the already loaded Agent components are first unloaded
MainComponentLoader.getInstance().destroy();
// the initialization procedure implicitly applies the new configurations and then loads up again the Agent components
MainComponentLoader.getInstance().initialize(configurators);
} else {
// send the Agent configuration
new RemoteConfigurationManager().pushConfiguration(atsAgent, configurator);
}
}
Aggregations