@Override public void afterStart() { String path = ZKPaths.makePath(getZooKeeperPath(), address.toString()); byte[] data = address.toString().getBytes(US_ASCII); node = new PersistentNode(client, CreateMode.EPHEMERAL, false, path, data); node.start(); }
@Override public String toString() { return destination.toString(); }