コード例 #1
0
 @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();
 }
コード例 #2
0
 @Override
 public String toString() {
   return destination.toString();
 }