org.apache.hadoop.hbase.replication
Class ReplicationPeerConfig
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationPeerConfig
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class ReplicationPeerConfig
- extends Object
A configuration for the replication peer cluster.
ReplicationPeerConfig
public ReplicationPeerConfig()
setClusterKey
public ReplicationPeerConfig setClusterKey(String clusterKey)
- Set the clusterKey which is the concatenation of the slave cluster's:
hbase.zookeeper.quorum:hbase.zookeeper.property.clientPort:zookeeper.znode.parent
setReplicationEndpointImpl
public ReplicationPeerConfig setReplicationEndpointImpl(String replicationEndpointImpl)
- Sets the ReplicationEndpoint plugin class for this peer.
- Parameters:
replicationEndpointImpl
- a class implementing ReplicationEndpoint
getClusterKey
public String getClusterKey()
getReplicationEndpointImpl
public String getReplicationEndpointImpl()
getPeerData
public Map<byte[],byte[]> getPeerData()
getConfiguration
public Map<String,String> getConfiguration()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.