@InterfaceAudience.Private public class ReplicationSinkServiceImpl extends Object implements ReplicationSinkService
| Modifier and Type | Class and Description | 
|---|---|
| private class  | ReplicationSinkServiceImpl.ReplicationStatisticsChore | 
| Modifier and Type | Field and Description | 
|---|---|
| private org.apache.hadoop.conf.Configuration | conf | 
| private static org.slf4j.Logger | LOG | 
| private ReplicationLoad | replicationLoad | 
| private ReplicationSink | replicationSink | 
| private Server | server | 
| private int | statsPeriodInSecond | 
| 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. | 
private static final org.slf4j.Logger LOG
private org.apache.hadoop.conf.Configuration conf
private ReplicationSink replicationSink
private ReplicationLoad replicationLoad
private int statsPeriodInSecond
public ReplicationSinkServiceImpl()
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–2021 The Apache Software Foundation. All rights reserved.