use of org.apache.qpid.disttest.controller.Controller in project qpid-broker-j by apache.
the class ControllerRunner method runController.
public void runController() throws Exception {
Context context = getContext();
setUpResultsWriters();
ControllerJmsDelegate jmsDelegate = new ControllerJmsDelegate(context);
try {
Controller controller = new Controller(jmsDelegate, getCliOptions());
String testConfigPath = getCliOptions().get(ControllerRunner.TEST_CONFIG_PROP);
List<String> testConfigFiles = _configFileHelper.getTestConfigFiles(testConfigPath);
Collection<ClientRunner> clients = createClientsIfNotDistributed(testConfigFiles);
try {
runTests(controller, testConfigFiles);
} finally {
controller.stopAllRegisteredClients();
awaitClientShutdown(clients);
}
} finally {
tearDownResultsWriters();
jmsDelegate.closeConnections();
}
}
Aggregations