@InterfaceAudience.Private public abstract class BaseReplicationEndpoint extends org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService implements ReplicationEndpoint
ReplicationEndpoints. For internal use. Uses our internal
Guava.ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContext| Modifier and Type | Field and Description |
|---|---|
protected ReplicationEndpoint.Context |
ctx |
private static org.slf4j.Logger |
LOG |
static String |
REPLICATION_WALENTRYFILTER_CONFIG_KEY |
| Constructor and Description |
|---|
BaseReplicationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReplicateToSameCluster()
Whether or not, the replication endpoint can replicate to it's source cluster with the same
UUID
|
protected WALEntryFilter |
getNamespaceTableCfWALEntryFilter()
Returns a WALEntryFilter for checking replication per table and CF.
|
protected WALEntryFilter |
getScopeWALEntryFilter()
Returns a WALEntryFilter for checking the scope.
|
WALEntryFilter |
getWALEntryfilter()
Returns a default set of filters
|
void |
init(ReplicationEndpoint.Context context)
Initialize the replication endpoint with the given context.
|
boolean |
isStarting() |
void |
peerConfigUpdated(ReplicationPeerConfig rpc)
Callback method for when users update the ReplicationPeerConfig for this peer
|
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, doStart, doStop, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, getPeerUUID, isRunning, replicate, start, stopprivate static final org.slf4j.Logger LOG
public static final String REPLICATION_WALENTRYFILTER_CONFIG_KEY
protected ReplicationEndpoint.Context ctx
public BaseReplicationEndpoint()
public void init(ReplicationEndpoint.Context context) throws IOException
ReplicationEndpointinit in interface ReplicationEndpointcontext - replication contextIOException - error occur when initialize the endpoint.public void peerConfigUpdated(ReplicationPeerConfig rpc)
ReplicationPeerConfigListenerpeerConfigUpdated in interface ReplicationPeerConfigListenerrpc - The updated ReplicationPeerConfigpublic WALEntryFilter getWALEntryfilter()
getWALEntryfilter in interface ReplicationEndpointWALEntryFilter or null.protected WALEntryFilter getScopeWALEntryFilter()
protected WALEntryFilter getNamespaceTableCfWALEntryFilter()
public boolean canReplicateToSameCluster()
ReplicationEndpointcanReplicateToSameCluster in interface ReplicationEndpointpublic boolean isStarting()
isStarting in interface ReplicationEndpointtrue is this service is STARTING (but not yet RUNNING).Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.