org.apache.hadoop.hbase.zookeeper
Class ClusterId
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ClusterId
public class ClusterId
- extends Object
Publishes and synchronizes a unique identifier specific to a given HBase
cluster. The stored identifier is read from the file system by the active
master on startup, and is subsequently available to all watchers (including
clients).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterId
public ClusterId(ZooKeeperWatcher watcher,
Abortable abortable)
hasId
public boolean hasId()
getId
public String getId()
readClusterIdZNode
public static String readClusterIdZNode(ZooKeeperWatcher watcher)
throws org.apache.zookeeper.KeeperException
- Throws:
org.apache.zookeeper.KeeperException
setClusterId
public static void setClusterId(ZooKeeperWatcher watcher,
String id)
throws org.apache.zookeeper.KeeperException
- Throws:
org.apache.zookeeper.KeeperException
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.