Class CatalogReplicationSource
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.ReplicationSource
org.apache.hadoop.hbase.replication.regionserver.CatalogReplicationSource
- All Implemented Interfaces:
ReplicationSourceInterface
ReplicationSource that reads catalog WAL files -- e.g. hbase:meta WAL files -- and lets through
all WALEdits from these WALs. This ReplicationSource is NOT created via
ReplicationSourceFactory.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.replication.regionserver.ReplicationSource
conf, DEFAULT_WAIT_ON_ENDPOINT_SECONDS, fs, logQueue, manager, queueId, queueSizePerGroup, queueStorage, replicationPeer, replicationQueueInfo, server, sourceRunning, WAIT_ON_ENDPOINT_SECONDS, walEntryFilter, workerThreads -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogPositionAndCleanOldLogs(WALEntryBatch entryBatch) Log the current position to storage.Methods inherited from class org.apache.hadoop.hbase.replication.regionserver.ReplicationSource
addHFileRefs, createNewShipper, enqueueLog, getCurrentPath, getPeerId, getQueueId, getQueues, getReplicationEndpoint, getReplicationQueueInfo, getReplicationQueueStorage, getServer, getServerWALsBelongTo, getSourceManager, getSourceMetrics, getStats, getTotalReplicatedEdits, getWalEntryFilter, getWALFileLengthProvider, getWalGroupStatus, init, isPeerEnabled, isSourceActive, isWorkerRunning, logPeerId, postShipEdits, sleepForRetries, startup, terminate, terminate, terminate, terminate, tryThrottleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
isRecovered
-
Constructor Details
-
CatalogReplicationSource
-
-
Method Details
-
logPositionAndCleanOldLogs
Description copied from interface:ReplicationSourceInterfaceLog the current position to storage. Also clean old logs from the replication queue. Use to bypass the default call toReplicationSourceManager.logPositionAndCleanOldLogs(ReplicationSourceInterface, WALEntryBatch)whem implementation does not need to persist state to backing storage.- Parameters:
entryBatch- the wal entry batch we just shipped
-