org.apache.hadoop.hbase.replication
Interface ReplicationPeer

All Known Implementing Classes:
ReplicationPeerZKImpl

@InterfaceAudience.LimitedPrivate(value="Replication")
public interface ReplicationPeer

ReplicationPeer manages enabled / disabled state for the peer.


Nested Class Summary
static class ReplicationPeer.PeerState
          State of the peer, whether it is enabled or not
 
Method Summary
 org.apache.hadoop.conf.Configuration getConfiguration()
          Get the configuration object required to communicate with this peer
 String getId()
          Get the identifier of this peer
 ReplicationPeerConfig getPeerConfig()
          Get the peer config object
 ReplicationPeer.PeerState getPeerState()
          Returns the state of the peer
 Map<String,List<String>> getTableCFs()
          Get replicable (table, cf-list) map of this peer
 

Method Detail

getId

String getId()
Get the identifier of this peer

Returns:
string representation of the id

getPeerConfig

ReplicationPeerConfig getPeerConfig()
Get the peer config object

Returns:
the ReplicationPeerConfig for this peer

getPeerState

ReplicationPeer.PeerState getPeerState()
Returns the state of the peer

Returns:
the enabled state

getConfiguration

org.apache.hadoop.conf.Configuration getConfiguration()
Get the configuration object required to communicate with this peer

Returns:
configuration object

getTableCFs

Map<String,List<String>> getTableCFs()
Get replicable (table, cf-list) map of this peer

Returns:
the replicable (table, cf-list) map


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.