@InterfaceAudience.Private public class RecoveredReplicationSource extends ReplicationSource
ReplicationSource.LogsComparatorconf, DEFAULT_WAIT_ON_ENDPOINT_SECONDS, fs, manager, queueId, queueSizePerGroup, queueStorage, replicationPeer, replicationQueueInfo, server, WAIT_ON_ENDPOINT_SECONDS, walEntryFilter, workerThreads| Constructor and Description |
|---|
RecoveredReplicationSource() |
| Modifier and Type | Method and Description |
|---|---|
protected RecoveredReplicationSourceShipper |
createNewShipper(String walGroupId,
PriorityBlockingQueue<org.apache.hadoop.fs.Path> queue) |
String |
getPeerId()
Get the id that the source is replicating to.
|
org.apache.hadoop.hbase.ServerName |
getServerWALsBelongTo()
The queue of WALs only belong to one region server.
|
void |
init(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
ReplicationSourceManager manager,
org.apache.hadoop.hbase.replication.ReplicationQueueStorage queueStorage,
org.apache.hadoop.hbase.replication.ReplicationPeer replicationPeer,
Server server,
String peerClusterZnode,
UUID clusterId,
WALFileLengthProvider walFileLengthProvider,
MetricsSource metrics)
Instantiation method used by region servers
|
boolean |
isRecovered() |
void |
locateRecoveredPaths(PriorityBlockingQueue<org.apache.hadoop.fs.Path> queue) |
addHFileRefs, enqueueLog, getCurrentPath, getQueueId, getReplicationEndpoint, getSourceManager, getSourceMetrics, getStats, getWALFileLengthProvider, getWalGroupStatus, isPeerEnabled, isSourceActive, postShipEdits, sleepForRetries, startup, terminate, terminate, terminate, tryThrottle, uncaughtExceptionpublic void init(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
ReplicationSourceManager manager,
org.apache.hadoop.hbase.replication.ReplicationQueueStorage queueStorage,
org.apache.hadoop.hbase.replication.ReplicationPeer replicationPeer,
Server server,
String peerClusterZnode,
UUID clusterId,
WALFileLengthProvider walFileLengthProvider,
MetricsSource metrics)
throws IOException
ReplicationSourceinit in interface ReplicationSourceInterfaceinit in class ReplicationSourceconf - configuration to usefs - file system to usemanager - replication manager to ping toserver - the server for this region serverpeerClusterZnode - the id of our replication queueclusterId - unique UUID for the clustermetrics - metrics for replication sourceIOExceptionprotected RecoveredReplicationSourceShipper createNewShipper(String walGroupId, PriorityBlockingQueue<org.apache.hadoop.fs.Path> queue)
createNewShipper in class ReplicationSourcepublic void locateRecoveredPaths(PriorityBlockingQueue<org.apache.hadoop.fs.Path> queue) throws IOException
IOExceptionpublic String getPeerId()
ReplicationSourceInterfacegetPeerId in interface ReplicationSourceInterfacegetPeerId in class ReplicationSourcepublic org.apache.hadoop.hbase.ServerName getServerWALsBelongTo()
ReplicationSourceInterfacegetServerWALsBelongTo in interface ReplicationSourceInterfacegetServerWALsBelongTo in class ReplicationSourcepublic boolean isRecovered()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.