private void addUserExecutionListeners(ConfigProperties config, List<ExecutionListener> result) { List<String> listenerClasses = config.getValues(ChorusConfigProperty.EXECUTION_LISTENER); for ( String className : listenerClasses) { addUserExecutionListener(className, result); } }
public List<ExecutionListener> createExecutionListeners(ConfigProperties config) { List<ExecutionListener> result = new ArrayList<>(); //we can have zero to many remote jmx execution listeners available addProxyForRemoteJmxListener(config.getValues(ChorusConfigProperty.JMX_LISTENER), result); addUserExecutionListeners(config, result); return result; }
/** * Run the interpreter, collating results into the executionToken */ public ChorusInterpreter buildAndConfigure(ConfigProperties config, SubsystemManager subsystemManager) { ChorusInterpreter chorusInterpreter = new ChorusInterpreter(listenerSupport); chorusInterpreter.setHandlerClassBasePackages(config.getValues(ChorusConfigProperty.HANDLER_PACKAGES)); chorusInterpreter.setScenarioTimeoutMillis(Integer.valueOf(config.getValue(ChorusConfigProperty.SCENARIO_TIMEOUT)) * 1000); chorusInterpreter.setDryRun(config.isTrue(ChorusConfigProperty.DRY_RUN)); chorusInterpreter.setSubsystemManager(subsystemManager); StepCatalogue stepCatalogue = createStepCatalogue(config); chorusInterpreter.setStepCatalogue(stepCatalogue); return chorusInterpreter; }