cluster.addNodeProperty(IP_ADDRESS, true, true, INET_ADDRESS_READER_WRITER);
cluster.setNodeProperty(IP_ADDRESS, InetAddress.getLocalHost());
cluster.addNodeProperty(IP_SERVER_PORT, false, true, ReaderWriters.INTEGER);
cluster.addNodeChangeListener(new NodeChangeListener() {
@Override
public void nodeAdded(short id) {
if (getCluster().isMaster() && id == Comm.SERVER) {
LOG.info("Server added! Connecting.");