Class TestDisablePeerModification.MockPeerStorage

java.lang.Object
org.apache.hadoop.hbase.replication.FSReplicationPeerStorage
org.apache.hadoop.hbase.master.replication.TestDisablePeerModification.MockPeerStorage
All Implemented Interfaces:
org.apache.hadoop.hbase.replication.ReplicationPeerStorage
Enclosing class:
TestDisablePeerModification

public static final class TestDisablePeerModification.MockPeerStorage extends org.apache.hadoop.hbase.replication.FSReplicationPeerStorage
  • Field Summary

    Fields inherited from class org.apache.hadoop.hbase.replication.FSReplicationPeerStorage

    PEERS_DIR, PEERS_DIR_DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockPeerStorage(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPeer(String peerId, org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig, boolean enabled, org.apache.hadoop.hbase.replication.SyncReplicationState syncReplicationState)
     

    Methods inherited from class org.apache.hadoop.hbase.replication.FSReplicationPeerStorage

    getPeerConfig, getPeerNewSyncReplicationState, getPeerSyncReplicationState, isPeerEnabled, listPeerIds, removePeer, setPeerNewSyncReplicationState, setPeerState, transitPeerSyncReplicationState, updatePeerConfig

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addPeer

      public void addPeer(String peerId, org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig, boolean enabled, org.apache.hadoop.hbase.replication.SyncReplicationState syncReplicationState) throws org.apache.hadoop.hbase.replication.ReplicationException
      Specified by:
      addPeer in interface org.apache.hadoop.hbase.replication.ReplicationPeerStorage
      Overrides:
      addPeer in class org.apache.hadoop.hbase.replication.FSReplicationPeerStorage
      Throws:
      org.apache.hadoop.hbase.replication.ReplicationException