Config config = Config.getConfig("indexer.properties");
if (config.getBoolean("clustering.enable")) {
int port = PortUtil.getPort("clustering.rpc.indexer");
nodeListener = new NodeListener(port, config);
ControllerModule.addModuleListener(nodeListener, new ControllableImplementation());
indexerMonitoredNode = IndexerMonitoredNode.getInstance();
MonitorModule.addModuleListener(nodeListener, IndexerMonitoredNode.getInstance());
ActionModule.addModuleListener(nodeListener, new IndexerActionReceiver(this));
DeployModule.addModuleListener(nodeListener, new DeployListenerImplementation());
nodeListener.start();