@InterfaceAudience.Private public class PeerProcedureHandlerImpl extends Object implements PeerProcedureHandler
| Modifier and Type | Field and Description |
|---|---|
private KeyLocker<String> |
peersLock |
private ReplicationSourceManager |
replicationSourceManager |
| Constructor and Description |
|---|
PeerProcedureHandlerImpl(ReplicationSourceManager replicationSourceManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPeer(String peerId) |
void |
claimReplicationQueue(ServerName crashedServer,
String queue) |
void |
disablePeer(String peerId) |
void |
enablePeer(String peerId) |
private void |
refreshPeerState(String peerId) |
void |
removePeer(String peerId) |
void |
updatePeerConfig(String peerId) |
private final ReplicationSourceManager replicationSourceManager
public PeerProcedureHandlerImpl(ReplicationSourceManager replicationSourceManager)
public void addPeer(String peerId) throws IOException
addPeer in interface PeerProcedureHandlerIOExceptionpublic void removePeer(String peerId) throws IOException
removePeer in interface PeerProcedureHandlerIOExceptionprivate void refreshPeerState(String peerId) throws ReplicationException, IOException
ReplicationExceptionIOExceptionpublic void enablePeer(String peerId) throws ReplicationException, IOException
enablePeer in interface PeerProcedureHandlerReplicationExceptionIOExceptionpublic void disablePeer(String peerId) throws ReplicationException, IOException
disablePeer in interface PeerProcedureHandlerReplicationExceptionIOExceptionpublic void updatePeerConfig(String peerId) throws ReplicationException, IOException
updatePeerConfig in interface PeerProcedureHandlerReplicationExceptionIOExceptionpublic void claimReplicationQueue(ServerName crashedServer, String queue) throws ReplicationException, IOException
claimReplicationQueue in interface PeerProcedureHandlerReplicationExceptionIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.