@InterfaceAudience.Private public class RegionReplicaReplicationEndpoint extends HBaseReplicationEndpoint
ReplicationEndpoint endpoint which receives the WAL edits from the
WAL, and sends the edits to replicas of regions.HBaseReplicationEndpoint.PeerRegionServerListenerReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContextctx| 构造器和说明 |
|---|
RegionReplicaReplicationEndpoint() |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
protected WALEntryFilter |
getScopeWALEntryFilter()
Returns a WALEntryFilter for checking the scope.
|
protected WALEntryFilter |
getSkipReplayedEditsFilter() |
WALEntryFilter |
getWALEntryfilter()
Returns a default set of filters
|
void |
init(ReplicationEndpoint.Context context)
Initialize the replication endpoint with the given context.
|
boolean |
replicate(ReplicationEndpoint.ReplicateContext replicateContext)
Replicate the given set of entries (in the context) to the other cluster.
|
abort, disconnect, fetchSlavesAddresses, getLastRegionServerUpdate, getPeerUUID, getRegionServers, getZkw, isAborted, reconnect, setRegionServersclose, getTableCfWALEntryFilter, peerConfigUpdatedisRunning, notifyFailed, notifyStarted, notifyStopped, start, startAndWait, state, stop, stopAndWait, toStringpublic WALEntryFilter getWALEntryfilter()
BaseReplicationEndpointgetWALEntryfilter 在接口中 ReplicationEndpointgetWALEntryfilter 在类中 BaseReplicationEndpointWALEntryFilter or null.protected WALEntryFilter getSkipReplayedEditsFilter()
public void init(ReplicationEndpoint.Context context) throws IOException
ReplicationEndpointinit 在接口中 ReplicationEndpointinit 在类中 BaseReplicationEndpointcontext - replication contextIOExceptionprotected void doStart()
doStart 在类中 HBaseReplicationEndpointprotected void doStop()
doStop 在类中 HBaseReplicationEndpointpublic boolean replicate(ReplicationEndpoint.ReplicateContext replicateContext)
ReplicationEndpointreplicateContext - a context where WAL entries and other
parameters can be obtained.public boolean canReplicateToSameCluster()
ReplicationEndpointprotected WALEntryFilter getScopeWALEntryFilter()
BaseReplicationEndpointCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.