Package org.apache.hadoop.hbase
Class ActiveClusterSuffix
java.lang.Object
org.apache.hadoop.hbase.ActiveClusterSuffix
- All Implemented Interfaces:
ClusterIdFile
The read-replica cluster id 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 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActiveClusterSuffix(String input) ActiveClusterSuffix(String clusterId, String suffix) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.shaded.protobuf.generated.ActiveClusterSuffixProtos.ActiveClusterSuffixconvert()Returns A pb instance to represent this instance.static ActiveClusterSuffixconvert(org.apache.hadoop.hbase.shaded.protobuf.generated.ActiveClusterSuffixProtos.ActiveClusterSuffix cs) Returns AActiveClusterSuffixmade from the passed incsbooleanstatic ActiveClusterSuffixfromConfig(org.apache.hadoop.conf.Configuration conf, ClusterId clusterId) inthashCode()static ActiveClusterSuffixparseFrom(byte[] bytes) byte[]Returns The active cluster suffix serialized using pb w/ pb magic prefixtoString()
-
Field Details
-
clusterId
-
suffix
-
-
Constructor Details
-
ActiveClusterSuffix
-
ActiveClusterSuffix
-
-
Method Details
-
parseFrom
- Throws:
DeserializationException
-
fromConfig
public static ActiveClusterSuffix fromConfig(org.apache.hadoop.conf.Configuration conf, ClusterId clusterId) -
toByteArray
Returns The active cluster suffix serialized using pb w/ pb magic prefix- Specified by:
toByteArrayin interfaceClusterIdFile
-
convert
public org.apache.hadoop.hbase.shaded.protobuf.generated.ActiveClusterSuffixProtos.ActiveClusterSuffix convert()Returns A pb instance to represent this instance. -
convert
public static ActiveClusterSuffix convert(org.apache.hadoop.hbase.shaded.protobuf.generated.ActiveClusterSuffixProtos.ActiveClusterSuffix cs) Returns AActiveClusterSuffixmade from the passed incs -
toString
-
equals
-
hashCode
-