Class ReplicationSinkServiceImpl
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationSinkServiceImpl
- All Implemented Interfaces:
ReplicationService
,ReplicationSinkService
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
private ReplicationLoad
private ReplicationSink
private Server
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Refresh and Get ReplicationLoadvoid
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 sinkvoid
Start replication services.void
Stops replication service.
-
Field Details
-
LOG
-
conf
-
server
-
replicationSink
-
replicationLoad
-
statsPeriodInSecond
-
-
Constructor Details
-
ReplicationSinkServiceImpl
public ReplicationSinkServiceImpl()
-
-
Method Details
-
replicateLogEntries
public void replicateLogEntries(List<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry> entries, CellScanner cells, String replicationClusterId, String sourceBaseNamespaceDirPath, String sourceHFileArchiveDirPath) throws IOException Description copied from interface:ReplicationSinkService
Carry on the list of log entries down to the sink- Specified by:
replicateLogEntries
in interfaceReplicationSinkService
- Parameters:
entries
- 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 directory- Throws:
IOException
-
initialize
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 Description copied from interface:ReplicationService
Initializes the replication service object.- Specified by:
initialize
in interfaceReplicationService
- Throws:
IOException
-
startReplicationService
Description copied from interface:ReplicationService
Start replication services.- Specified by:
startReplicationService
in interfaceReplicationService
- Throws:
IOException
-
stopReplicationService
Description copied from interface:ReplicationService
Stops replication service.- Specified by:
stopReplicationService
in interfaceReplicationService
-
refreshAndGetReplicationLoad
Description copied from interface:ReplicationService
Refresh and Get ReplicationLoad- Specified by:
refreshAndGetReplicationLoad
in interfaceReplicationService
-