@InterfaceAudience.Private public class Replication extends Object implements ReplicationSourceService
HRegionServer.| Constructor and Description |
|---|
Replication()
Empty constructor
|
| Modifier and Type | Method and Description |
|---|---|
PeerProcedureHandler |
getPeerProcedureHandler()
Returns a Handler to handle peer procedures.
|
ReplicationSourceManager |
getReplicationManager()
Get the replication sources manager
|
ReplicationPeers |
getReplicationPeers()
Return the replication peers.
|
SyncReplicationPeerInfoProvider |
getSyncReplicationPeerInfoProvider()
Returns an info provider for sync replication peer.
|
void |
initialize(Server server,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path logDir,
org.apache.hadoop.fs.Path oldLogDir,
WALFactory walFactory)
Initializes the replication service object.
|
ReplicationLoad |
refreshAndGetReplicationLoad()
Refresh and Get ReplicationLoad
|
void |
startReplicationService()
If replication is enabled and this cluster is a master, it starts
|
void |
stopReplicationService()
Stops replication service.
|
public void initialize(Server server, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path logDir, org.apache.hadoop.fs.Path oldLogDir, WALFactory walFactory) throws IOException
ReplicationServiceinitialize in interface ReplicationServiceIOExceptionpublic PeerProcedureHandler getPeerProcedureHandler()
ReplicationSourceServicegetPeerProcedureHandler in interface ReplicationSourceServicepublic void stopReplicationService()
stopReplicationService in interface ReplicationServicepublic void startReplicationService()
throws IOException
startReplicationService in interface ReplicationServiceIOExceptionpublic ReplicationSourceManager getReplicationManager()
getReplicationManager in interface ReplicationSourceServicepublic ReplicationLoad refreshAndGetReplicationLoad()
ReplicationServicerefreshAndGetReplicationLoad in interface ReplicationServicepublic SyncReplicationPeerInfoProvider getSyncReplicationPeerInfoProvider()
ReplicationSourceServicegetSyncReplicationPeerInfoProvider in interface ReplicationSourceServicepublic ReplicationPeers getReplicationPeers()
ReplicationSourceServicegetReplicationPeers in interface ReplicationSourceServiceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.