Class ClusterId

java.lang.Object
org.apache.hadoop.hbase.ClusterId
All Implemented Interfaces:
ClusterIdFile

@Private public class ClusterId extends Object implements ClusterIdFile
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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    New ClusterID.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId
    Returns A pb instance to represent this instance.
    static ClusterId
    convert(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId cid)
    Returns A ClusterId made from the passed in cid
    byte[]
    Returns The clusterid serialized using pb w/ pb magic prefix
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • toByteArray

      public byte[] toByteArray()
      Returns The clusterid serialized using pb w/ pb magic prefix
      Specified by:
      toByteArray in interface ClusterIdFile
    • convert

      public org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId 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 A ClusterId made from the passed in cid
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: