public abstract class BaseReplicationEndpoint extends 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 |
static java.lang.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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, getPeerUUID, isRunning, replicate, start, stoppublic static final java.lang.String REPLICATION_WALENTRYFILTER_CONFIG_KEY
protected ReplicationEndpoint.Context ctx
public void init(ReplicationEndpoint.Context context) throws java.io.IOException
ReplicationEndpointinit in interface ReplicationEndpointcontext - replication contextjava.io.IOExceptionpublic void peerConfigUpdated(ReplicationPeerConfig rpc)
public 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).