org.apache.hadoop.hbase
Class ClusterId

java.lang.Object
  extended by 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.


Constructor Summary
ClusterId()
          New ClusterID.
ClusterId(String uuid)
           
 
Method Summary
static ClusterId parseFrom(byte[] bytes)
           
 byte[] toByteArray()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterId

public ClusterId()
New ClusterID. Generates a uniqueid.


ClusterId

public ClusterId(String uuid)
Method Detail

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.