org.apache.hadoop.hbase
Class ClusterId
java.lang.Object
org.apache.hadoop.hbase.ClusterId
@InterfaceAudience.Private
public class ClusterId
- extends Object
The identifier for this cluster.
It is serialized to the filesystem and up into zookeeper. This is a container for the id.
Also knows how to serialize and deserialize the cluster id.
ClusterId
public ClusterId()
- New ClusterID. Generates a uniqueid.
ClusterId
public ClusterId(String uuid)
toByteArray
public byte[] toByteArray()
- Returns:
- The clusterid serialized using pb w/ pb magic prefix
parseFrom
public static ClusterId parseFrom(byte[] bytes)
throws DeserializationException
- Parameters:
bytes
- A pb serialized ClusterId
instance with pb magic prefix
- Returns:
- An instance of
ClusterId
made from bytes
- Throws:
DeserializationException
- See Also:
toByteArray()
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.