@InterfaceAudience.Private public class VisibilityReplicationEndpoint extends Object implements ReplicationEndpoint
ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContext| 构造器和说明 |
|---|
VisibilityReplicationEndpoint(ReplicationEndpoint endpoint,
VisibilityLabelService visibilityLabelsService) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canReplicateToSameCluster()
Whether or not, the replication endpoint can replicate to it's source cluster with the same
UUID
|
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() |
void |
peerConfigUpdated(ReplicationPeerConfig rpc) |
boolean |
replicate(ReplicationEndpoint.ReplicateContext replicateContext)
Replicate the given set of entries (in the context) to the other cluster.
|
com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> |
start() |
com.google.common.util.concurrent.Service.State |
startAndWait() |
com.google.common.util.concurrent.Service.State |
state() |
com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> |
stop() |
com.google.common.util.concurrent.Service.State |
stopAndWait() |
public VisibilityReplicationEndpoint(ReplicationEndpoint endpoint, VisibilityLabelService visibilityLabelsService)
public void init(ReplicationEndpoint.Context context) throws IOException
ReplicationEndpointinit 在接口中 ReplicationEndpointcontext - replication contextIOExceptionpublic boolean replicate(ReplicationEndpoint.ReplicateContext replicateContext)
ReplicationEndpointreplicate 在接口中 ReplicationEndpointreplicateContext - a context where WAL entries and other
parameters can be obtained.public UUID getPeerUUID()
ReplicationEndpointgetPeerUUID 在接口中 ReplicationEndpointpublic boolean canReplicateToSameCluster()
ReplicationEndpointcanReplicateToSameCluster 在接口中 ReplicationEndpointpublic WALEntryFilter getWALEntryfilter()
ReplicationEndpointgetWALEntryfilter 在接口中 ReplicationEndpointWALEntryFilter or null.public boolean isRunning()
isRunning 在接口中 com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> start()
start 在接口中 com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.Service.State startAndWait()
startAndWait 在接口中 com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.Service.State state()
state 在接口中 com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> stop()
stop 在接口中 com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.Service.State stopAndWait()
stopAndWait 在接口中 com.google.common.util.concurrent.Servicepublic void peerConfigUpdated(ReplicationPeerConfig rpc)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.