Class ReplicationSinkServiceImpl
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationSinkServiceImpl
- All Implemented Interfaces:
ReplicationService,ReplicationSinkService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerprivate ReplicationLoadprivate ReplicationSinkprivate Serverprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(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 ReplicationLoadvoidreplicateLogEntries(List<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry> entries, ExtendedCellScanner cells, String replicationClusterId, String sourceBaseNamespaceDirPath, String sourceHFileArchiveDirPath) Carry on the list of log entries down to the sinkvoidStart replication services.voidStops 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, ExtendedCellScanner cells, String replicationClusterId, String sourceBaseNamespaceDirPath, String sourceHFileArchiveDirPath) throws IOException Description copied from interface:ReplicationSinkServiceCarry on the list of log entries down to the sink- Specified by:
replicateLogEntriesin 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:ReplicationServiceInitializes the replication service object.- Specified by:
initializein interfaceReplicationService- Throws:
IOException
-
startReplicationService
Description copied from interface:ReplicationServiceStart replication services.- Specified by:
startReplicationServicein interfaceReplicationService- Throws:
IOException
-
stopReplicationService
Description copied from interface:ReplicationServiceStops replication service.- Specified by:
stopReplicationServicein interfaceReplicationService
-
refreshAndGetReplicationLoad
Description copied from interface:ReplicationServiceRefresh and Get ReplicationLoad- Specified by:
refreshAndGetReplicationLoadin interfaceReplicationService
-