@InterfaceAudience.LimitedPrivate(value="Replication") public abstract class BaseReplicationEndpoint extends com.google.common.util.concurrent.AbstractService implements ReplicationEndpoint
ReplicationEndpoints. Users should consider extending this
class rather than implementing ReplicationEndpoint directly for better backwards
compatibility.ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContext| Modifier and Type | Field and Description |
|---|---|
protected ReplicationEndpoint.Context |
ctx |
| 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
|
void |
close() |
protected WALEntryFilter |
getScopeWALEntryFilter()
Returns a WALEntryFilter for checking the scope.
|
protected WALEntryFilter |
getTableCfWALEntryFilter()
Returns a WALEntryFilter for checking replication per table and CF.
|
WALEntryFilter |
getWALEntryfilter()
Returns a default set of filters
|
void |
init(ReplicationEndpoint.Context context)
Initialize the replication endpoint with the given context.
|
void |
peerConfigUpdated(ReplicationPeerConfig rpc) |
doStart, doStop, isRunning, notifyFailed, notifyStarted, notifyStopped, start, startAndWait, state, stop, stopAndWait, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPeerUUID, replicateprotected ReplicationEndpoint.Context ctx
public void init(ReplicationEndpoint.Context context) throws IOException
ReplicationEndpointinit in interface ReplicationEndpointcontext - replication contextIOExceptionpublic void peerConfigUpdated(ReplicationPeerConfig rpc)
peerConfigUpdated in interface ReplicationPeerConfigListenerpublic WALEntryFilter getWALEntryfilter()
getWALEntryfilter in interface ReplicationEndpointWALEntryFilter or null.protected WALEntryFilter getScopeWALEntryFilter()
protected WALEntryFilter getTableCfWALEntryFilter()
public boolean canReplicateToSameCluster()
ReplicationEndpointcanReplicateToSameCluster in interface ReplicationEndpointpublic void close()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.