org.apache.hadoop.hbase.replication
Class ReplicationSerDeHelper
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationSerDeHelper
@InterfaceAudience.Private
@InterfaceStability.Stable
public final class ReplicationSerDeHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parsePeerFrom
public static ReplicationPeerConfig parsePeerFrom(byte[] bytes)
throws DeserializationException
- Parameters:
bytes
- Content of a peer znode.
- Returns:
- ClusterKey parsed from the passed bytes.
- Throws:
DeserializationException
toByteArray
public static byte[] toByteArray(ReplicationPeerConfig peerConfig)
- Parameters:
peerConfig
-
- Returns:
- Serialized protobuf of
peerConfig
with pb magic prefix prepended suitable
for use as content of a this.peersZNode; i.e. the content of PEER_ID znode under
/hbase/replication/peers/PEER_ID
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.