if (config.getBoolean("clustering.enable")) {
int port = PortUtil.getPort("clustering.rpc.cacheServer");
nodeListener = new NodeListener(port, config);
MonitorModule.addModuleListener(nodeListener, new CacheServerMonitoredNode(this));
ControllerModule.addModuleListener(nodeListener, new ControllableImplementation());
DeployModule.addModuleListener(nodeListener, new DeployListenerImplementation());
nodeListener.start();
}
List<Pair<String, Integer>> caches = new ArrayList<Pair<String, Integer>>();
for (String host : config.getStringArray("multiCache.hosts")) {