@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
|
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.
|
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 WALEntryFilter getWALEntryfilter()
getWALEntryfilter in interface ReplicationEndpointWALEntryFilter or null.protected WALEntryFilter getScopeWALEntryFilter()
protected WALEntryFilter getTableCfWALEntryFilter()
public boolean canReplicateToSameCluster()
ReplicationEndpointcanReplicateToSameCluster in interface ReplicationEndpointCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.