clusters.debugDump(clusterDump);
LOG.info("********* Current Clusters State *********");
LOG.info(clusterDump.toString());
LOG.info("********* Initializing ActionManager **********");
ActionManager manager = injector.getInstance(ActionManager.class);
LOG.info("********* Initializing Controller **********");
AmbariManagementController controller = injector.getInstance(
AmbariManagementController.class);
clusterController = controller;
// FIXME need to figure out correct order of starting things to
// handle restart-recovery correctly
/*
* Start the server after controller state is recovered.
*/
server.start();
serverForAgent.start();
LOG.info("********* Started Server **********");
manager.start();
LOG.info("********* Started ActionManager **********");
//TODO: Remove this code when APIs are ready for testing.
// RequestInjectorForTest testInjector = new RequestInjectorForTest(controller, clusters);
// Thread testInjectorThread = new Thread(testInjector);