public class ClusterId extends Object
Constructor and Description |
---|
ClusterId(ZooKeeperWatcher watcher,
Abortable abortable) |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
boolean |
hasId() |
static String |
readClusterIdZNode(ZooKeeperWatcher watcher) |
static void |
setClusterId(ZooKeeperWatcher watcher,
String id) |
public ClusterId(ZooKeeperWatcher watcher, Abortable abortable)
public boolean hasId()
public String getId()
public static String readClusterIdZNode(ZooKeeperWatcher watcher) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
public static void setClusterId(ZooKeeperWatcher watcher, String id) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.