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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
logPositionAndCleanOldLogs
(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, tryThrottle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
isRecovered
-
Constructor Details
-
CatalogReplicationSource
-
-
Method Details
-
logPositionAndCleanOldLogs
Description copied from interface:ReplicationSourceInterface
Log 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
-