@InterfaceAudience.Private public class ReplicationSinkServiceImpl extends Object implements ReplicationSinkService
| Constructor and Description |
|---|
ReplicationSinkServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 |
replicateLogEntries(List<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry> entries,
CellScanner cells,
String replicationClusterId,
String sourceBaseNamespaceDirPath,
String sourceHFileArchiveDirPath)
Carry on the list of log entries down to the sink
|
void |
startReplicationService()
Start replication services.
|
void |
stopReplicationService()
Stops replication service.
|
public void replicateLogEntries(List<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry> entries, CellScanner cells, String replicationClusterId, String sourceBaseNamespaceDirPath, String sourceHFileArchiveDirPath) throws IOException
ReplicationSinkServicereplicateLogEntries in interface ReplicationSinkServiceentries - list of WALEntries to replicatecells - Cells that the WALEntries refer to (if cells is non-null)replicationClusterId - Id which will uniquely identify source cluster FS client
configurations in the replication configuration directorysourceBaseNamespaceDirPath - Path that point to the source cluster base namespace
directory required for replicating hfilessourceHFileArchiveDirPath - Path that point to the source cluster hfile archive directoryIOExceptionpublic 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 void startReplicationService()
throws IOException
ReplicationServicestartReplicationService in interface ReplicationServiceIOExceptionpublic void stopReplicationService()
ReplicationServicestopReplicationService in interface ReplicationServicepublic ReplicationLoad refreshAndGetReplicationLoad()
ReplicationServicerefreshAndGetReplicationLoad in interface ReplicationServiceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.