@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
ReplicationSinkService
replicateLogEntries
in interface ReplicationSinkService
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
nIOException
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
ReplicationService
initialize
in interface ReplicationService
IOException
public void startReplicationService() throws IOException
ReplicationService
startReplicationService
in interface ReplicationService
IOException
public void stopReplicationService()
ReplicationService
stopReplicationService
in interface ReplicationService
public ReplicationLoad refreshAndGetReplicationLoad()
ReplicationService
refreshAndGetReplicationLoad
in interface ReplicationService
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.