@InterfaceAudience.Private public class VerifyWALEntriesReplicationEndpoint extends BaseReplicationEndpoint
ReplicationEndpoint that replicates nothing.
Mainly used by ITBLL to check whether all the entries in WAL files are fine, since for normal
case, we will only read the WAL files when there are region servers crash and we need to split
the log, but for replication we will read all the entries and pass them to the
ReplicationEndpoint, so setting up a replication peer can help finding out whether there
are broken entries in WAL files.ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContextctx, REPLICATION_WALENTRYFILTER_CONFIG_KEY| 构造器和说明 |
|---|
VerifyWALEntriesReplicationEndpoint() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canReplicateToSameCluster()
Whether or not, the replication endpoint can replicate to it's source cluster with the same
UUID
|
protected void |
doStart() |
protected void |
doStop() |
UUID |
getPeerUUID()
Returns a UUID of the provided peer id.
|
WALEntryFilter |
getWALEntryfilter()
Returns a default set of filters
|
boolean |
replicate(ReplicationEndpoint.ReplicateContext replicateContext)
Replicate the given set of entries (in the context) to the other cluster.
|
void |
start()
Initiates service startup and returns immediately.
|
void |
stop()
If the service is starting or running, this initiates service shutdown and returns immediately.
|
getNamespaceTableCfWALEntryFilter, getScopeWALEntryFilter, init, isStarting, peerConfigUpdatedaddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunningpublic boolean canReplicateToSameCluster()
ReplicationEndpointpublic UUID getPeerUUID()
ReplicationEndpointpublic WALEntryFilter getWALEntryfilter()
BaseReplicationEndpointgetWALEntryfilter 在接口中 ReplicationEndpointgetWALEntryfilter 在类中 BaseReplicationEndpointWALEntryFilter or null.public boolean replicate(ReplicationEndpoint.ReplicateContext replicateContext)
ReplicationEndpointreplicateContext - a context where WAL entries and other
parameters can be obtained.public void start()
ReplicationEndpointpublic void stop()
ReplicationEndpointprotected void doStart()
doStart 在类中 org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractServiceprotected void doStop()
doStop 在类中 org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractServiceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.