Class BaseReplicationEndpoint
java.lang.Object
org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService
org.apache.hadoop.hbase.replication.BaseReplicationEndpoint
- All Implemented Interfaces:
ReplicationEndpoint,ReplicationPeerConfigListener,org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service
- Direct Known Subclasses:
HBaseReplicationEndpoint,VerifyWALEntriesReplicationEndpoint
@Private
public abstract class BaseReplicationEndpoint
extends org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService
implements ReplicationEndpoint
A Base implementation for
ReplicationEndpoints. For internal use. Uses our internal
Guava.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.replication.ReplicationEndpoint
ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContextNested classes/interfaces inherited from interface org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service
org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service.Listener, org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReplicationEndpoint.Contextprivate static final org.slf4j.Loggerstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether or not, the replication endpoint can replicate to it's source cluster with the same UUIDprotected WALEntryFilterReturns a WALEntryFilter for checking replication per table and CF.protected WALEntryFilterReturns a WALEntryFilter for checking the scope.Returns a default set of filtersvoidinit(ReplicationEndpoint.Context context) Initialize the replication endpoint with the given context.booleanReturns Returntrueis this service is STARTING (but not yet RUNNING).voidCallback method for when users update the ReplicationPeerConfig for this peerMethods inherited from class org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, doStart, doStop, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.replication.ReplicationEndpoint
awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, getPeerUUID, isRunning, replicate, start, stop
-
Field Details
-
LOG
-
REPLICATION_WALENTRYFILTER_CONFIG_KEY
- See Also:
-
ctx
-
-
Constructor Details
-
BaseReplicationEndpoint
public BaseReplicationEndpoint()
-
-
Method Details
-
init
Description copied from interface:ReplicationEndpointInitialize the replication endpoint with the given context.- Specified by:
initin interfaceReplicationEndpoint- Parameters:
context- replication context- Throws:
IOException- error occur when initialize the endpoint.
-
peerConfigUpdated
Description copied from interface:ReplicationPeerConfigListenerCallback method for when users update the ReplicationPeerConfig for this peer- Specified by:
peerConfigUpdatedin interfaceReplicationPeerConfigListener- Parameters:
rpc- The updated ReplicationPeerConfig
-
getWALEntryfilter
Returns a default set of filters- Specified by:
getWALEntryfilterin interfaceReplicationEndpoint- Returns:
- a
WALEntryFilteror null.
-
getScopeWALEntryFilter
Returns a WALEntryFilter for checking the scope. Subclasses can return null if they don't want this filter -
getNamespaceTableCfWALEntryFilter
Returns a WALEntryFilter for checking replication per table and CF. Subclasses can return null if they don't want this filter -
canReplicateToSameCluster
Description copied from interface:ReplicationEndpointWhether or not, the replication endpoint can replicate to it's source cluster with the same UUID- Specified by:
canReplicateToSameClusterin interfaceReplicationEndpoint
-
isStarting
Description copied from interface:ReplicationEndpointReturns Returntrueis this service is STARTING (but not yet RUNNING).- Specified by:
isStartingin interfaceReplicationEndpoint
-