Package org.apache.hadoop.hbase
Class ClusterId
java.lang.Object
org.apache.hadoop.hbase.ClusterId
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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId
convert()
Returns A pb instance to represent this instance.static ClusterId
convert
(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId cid) Returns AClusterId
made from the passed incid
static ClusterId
parseFrom
(byte[] bytes) Parse the serialized representation of theClusterId
byte[]
Returns The clusterid serialized using pb w/ pb magic prefixtoString()
-
Field Details
-
id
-
-
Constructor Details
-
ClusterId
public ClusterId()New ClusterID. Generates a uniqueid. -
ClusterId
-
-
Method Details
-
toByteArray
Returns The clusterid serialized using pb w/ pb magic prefix -
parseFrom
Parse the serialized representation of theClusterId
- Parameters:
bytes
- A pb serializedClusterId
instance with pb magic prefix- Returns:
- An instance of
ClusterId
made frombytes
- Throws:
DeserializationException
- See Also:
-
convert
Returns A pb instance to represent this instance. -
convert
public static ClusterId convert(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId cid) Returns AClusterId
made from the passed incid
-
toString
-