Search in sources :

Example 1 with Controller

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();
    }
}
Also used : Context(javax.naming.Context) Controller(org.apache.qpid.disttest.controller.Controller) ControllerJmsDelegate(org.apache.qpid.disttest.jms.ControllerJmsDelegate)

Aggregations

Context (javax.naming.Context)1 Controller (org.apache.qpid.disttest.controller.Controller)1 ControllerJmsDelegate (org.apache.qpid.disttest.jms.ControllerJmsDelegate)1