@InterfaceAudience.Private public class VisibilityReplicationEndpoint extends java.lang.Object implements ReplicationEndpoint
ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContext| Constructor and Description |
|---|
VisibilityReplicationEndpoint(ReplicationEndpoint endpoint,
VisibilityLabelService visibilityLabelsService) |
| 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
|
java.util.UUID |
getPeerUUID()
Returns a UUID of the provided peer id.
|
WALEntryFilter |
getWALEntryfilter()
Returns a WALEntryFilter to use for filtering out WALEntries from the log.
|
void |
init(ReplicationEndpoint.Context context)
Initialize the replication endpoint with the given context.
|
boolean |
isRunning() |
boolean |
replicate(ReplicationEndpoint.ReplicateContext replicateContext)
Replicate the given set of entries (in the context) to the other cluster.
|
<any> |
start() |
State |
startAndWait() |
State |
state() |
<any> |
stop() |
State |
stopAndWait() |
public VisibilityReplicationEndpoint(ReplicationEndpoint endpoint, VisibilityLabelService visibilityLabelsService)
public void init(ReplicationEndpoint.Context context) throws java.io.IOException
ReplicationEndpointinit in interface ReplicationEndpointcontext - replication contextjava.io.IOExceptionpublic boolean replicate(ReplicationEndpoint.ReplicateContext replicateContext)
ReplicationEndpointreplicate in interface ReplicationEndpointreplicateContext - a context where WAL entries and other
parameters can be obtained.public java.util.UUID getPeerUUID()
ReplicationEndpointgetPeerUUID in interface ReplicationEndpointpublic boolean canReplicateToSameCluster()
ReplicationEndpointcanReplicateToSameCluster in interface ReplicationEndpointpublic WALEntryFilter getWALEntryfilter()
ReplicationEndpointgetWALEntryfilter in interface ReplicationEndpointWALEntryFilter or null.public boolean isRunning()
public <any> start()
public State startAndWait()
public State state()
public <any> stop()
public State stopAndWait()