org.apache.hadoop.hbase.replication
Class ReplicationPeerConfig

java.lang.Object
  extended by org.apache.hadoop.hbase.replication.ReplicationPeerConfig

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class ReplicationPeerConfig
extends Object

A configuration for the replication peer cluster.


Constructor Summary
ReplicationPeerConfig()
           
 
Method Summary
 String getClusterKey()
           
 Map<String,String> getConfiguration()
           
 Map<byte[],byte[]> getPeerData()
           
 String getReplicationEndpointImpl()
           
 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
 ReplicationPeerConfig setReplicationEndpointImpl(String replicationEndpointImpl)
          Sets the ReplicationEndpoint plugin class for this peer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicationPeerConfig

public ReplicationPeerConfig()
Method Detail

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.