@InterfaceAudience.Private
public interface ReplicationService
HRegionServer
. One such application is a
cross-datacenter replication service that can keep two hbase clusters in sync.Modifier and Type | Method and Description |
---|---|
void |
initialize(Server rs,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path logdir,
org.apache.hadoop.fs.Path oldLogDir,
WALProvider walProvider)
Initializes the replication service object.
|
ReplicationLoad |
refreshAndGetReplicationLoad()
Refresh and Get ReplicationLoad
|
void |
startReplicationService()
Start replication services.
|
void |
stopReplicationService()
Stops replication service.
|
void initialize(Server rs, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path logdir, org.apache.hadoop.fs.Path oldLogDir, WALProvider walProvider) throws IOException
walProvider
- can be null if not initialized inside a live region server environment, for
example, ReplicationSyncUp
.IOException
void startReplicationService() throws IOException
IOException
void stopReplicationService()
ReplicationLoad refreshAndGetReplicationLoad()
Copyright © 2007–2019 Cloudera. All rights reserved.