Class PeerProcedureHandlerImpl
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.PeerProcedureHandlerImpl
- All Implemented Interfaces:
PeerProcedureHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final PeerActionListener
private final ReplicationSourceManager
-
Constructor Summary
ConstructorDescriptionPeerProcedureHandlerImpl
(ReplicationSourceManager replicationSourceManager, PeerActionListener peerActionListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
claimReplicationQueue
(ReplicationQueueId queueId) void
disablePeer
(String peerId) void
enablePeer
(String peerId) private void
refreshPeerState
(String peerId) void
removePeer
(String peerId) void
transitSyncReplicationPeerState
(String peerId, int stage, HRegionServer rs) void
updatePeerConfig
(String peerId)
-
Field Details
-
LOG
-
replicationSourceManager
-
peerActionListener
-
peersLock
-
-
Constructor Details
-
PeerProcedureHandlerImpl
public PeerProcedureHandlerImpl(ReplicationSourceManager replicationSourceManager, PeerActionListener peerActionListener)
-
-
Method Details
-
addPeer
- Specified by:
addPeer
in interfacePeerProcedureHandler
- Throws:
IOException
-
removePeer
- Specified by:
removePeer
in interfacePeerProcedureHandler
- Throws:
IOException
-
refreshPeerState
- Throws:
ReplicationException
IOException
-
enablePeer
- Specified by:
enablePeer
in interfacePeerProcedureHandler
- Throws:
ReplicationException
IOException
-
disablePeer
- Specified by:
disablePeer
in interfacePeerProcedureHandler
- Throws:
ReplicationException
IOException
-
updatePeerConfig
- Specified by:
updatePeerConfig
in interfacePeerProcedureHandler
- Throws:
ReplicationException
IOException
-
transitSyncReplicationPeerState
public void transitSyncReplicationPeerState(String peerId, int stage, HRegionServer rs) throws ReplicationException, IOException - Specified by:
transitSyncReplicationPeerState
in interfacePeerProcedureHandler
- Throws:
ReplicationException
IOException
-
claimReplicationQueue
public void claimReplicationQueue(ReplicationQueueId queueId) throws ReplicationException, IOException - Specified by:
claimReplicationQueue
in interfacePeerProcedureHandler
- Throws:
ReplicationException
IOException
-