|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.LimitedPrivate(value="Replication") public interface ReplicationEndpoint
ReplicationEndpoint is a plugin which implements replication
to other HBase clusters, or other systems. ReplicationEndpoint implementation
can be specified at the peer creation time by specifying it
in the ReplicationPeerConfig
. A ReplicationEndpoint is run in a thread
in each region server in the same process.
ReplicationEndpoint is closely tied to ReplicationSource in a producer-consumer relation. ReplicationSource is an HBase-private class which tails the logs and manages the queue of logs plus management and persistence of all the state for replication. ReplicationEndpoint on the other hand is responsible for doing the actual shipping and persisting of the WAL entries in the other cluster.
Nested Class Summary | |
---|---|
static class |
ReplicationEndpoint.Context
|
static class |
ReplicationEndpoint.ReplicateContext
A context for replicate(ReplicateContext) method. |
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service |
---|
com.google.common.util.concurrent.Service.State |
Method Summary | |
---|---|
boolean |
canReplicateToSameCluster()
Whether or not, the replication endpoint can replicate to it's source cluster with the same UUID |
UUID |
getPeerUUID()
Returns a UUID of the provided peer id. |
WALEntryFilter |
getWALEntryfilter()
Returns a WALEntryFilter to use for filtering out WALEntries from the log. |
void |
init(ReplicationEndpoint.Context context)
Initialize the replication endpoint with the given context. |
boolean |
replicate(ReplicationEndpoint.ReplicateContext replicateContext)
Replicate the given set of entries (in the context) to the other cluster. |
Methods inherited from interface com.google.common.util.concurrent.Service |
---|
isRunning, start, startAndWait, state, stop, stopAndWait |
Methods inherited from interface org.apache.hadoop.hbase.replication.ReplicationPeerConfigListener |
---|
peerConfigUpdated |
Method Detail |
---|
void init(ReplicationEndpoint.Context context) throws IOException
context
- replication context
IOException
boolean canReplicateToSameCluster()
UUID getPeerUUID()
WALEntryFilter getWALEntryfilter()
WALEntryFilter
or null.boolean replicate(ReplicationEndpoint.ReplicateContext replicateContext)
replicateContext
- a context where WAL entries and other
parameters can be obtained.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |