Class ReplicationSourceDummy
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationSourceDummy
- All Implemented Interfaces:
org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
- Direct Known Subclasses:
TestReplicationSourceManager.FailInitializeDummyReplicationSource
public class ReplicationSourceDummy
extends Object
implements org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
Source that does nothing at all, helpful to test ReplicationSourceManager
-
Field Summary
Modifier and TypeFieldDescription(package private) org.apache.hadoop.fs.Path
(package private) org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager
(package private) org.apache.hadoop.hbase.replication.regionserver.MetricsSource
(package private) String
(package private) AtomicBoolean
(package private) org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHFileRefs
(org.apache.hadoop.hbase.TableName tableName, byte[] family, List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path>> files) void
enqueueLog
(org.apache.hadoop.fs.Path log) org.apache.hadoop.fs.Path
org.apache.hadoop.hbase.replication.ReplicationEndpoint
org.apache.hadoop.hbase.replication.ReplicationQueueStorage
org.apache.hadoop.hbase.ServerName
org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager
org.apache.hadoop.hbase.replication.regionserver.MetricsSource
getStats()
org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider
void
init
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager manager, org.apache.hadoop.hbase.replication.ReplicationQueueStorage rq, org.apache.hadoop.hbase.replication.ReplicationPeer rp, org.apache.hadoop.hbase.Server server, String peerClusterId, UUID clusterId, org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider walFileLengthProvider, org.apache.hadoop.hbase.replication.regionserver.MetricsSource metrics) boolean
boolean
boolean
void
postShipEdits
(List<org.apache.hadoop.hbase.wal.WAL.Entry> entries, long batchSize) org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
startup()
void
void
void
void
tryThrottle
(int batchSize) 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
getWalGroupStatus, isRecovered, logPositionAndCleanOldLogs
-
Field Details
-
manager
org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager manager -
peerClusterId
-
currentPath
org.apache.hadoop.fs.Path currentPath -
metrics
org.apache.hadoop.hbase.replication.regionserver.MetricsSource metrics -
walFileLengthProvider
org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider walFileLengthProvider -
startup
-
-
Constructor Details
-
ReplicationSourceDummy
public ReplicationSourceDummy()
-
-
Method Details
-
init
public void init(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager manager, org.apache.hadoop.hbase.replication.ReplicationQueueStorage rq, org.apache.hadoop.hbase.replication.ReplicationPeer rp, org.apache.hadoop.hbase.Server server, String peerClusterId, UUID clusterId, org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider walFileLengthProvider, org.apache.hadoop.hbase.replication.regionserver.MetricsSource metrics) throws IOException - Specified by:
init
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
- Throws:
IOException
-
enqueueLog
- Specified by:
enqueueLog
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getCurrentPath
- Specified by:
getCurrentPath
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
startup
- Specified by:
startup
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
isStartup
-
terminate
- Specified by:
terminate
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
terminate
- Specified by:
terminate
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
terminate
- Specified by:
terminate
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getQueueId
- Specified by:
getQueueId
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getPeerId
- Specified by:
getPeerId
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getStats
- Specified by:
getStats
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
addHFileRefs
public void addHFileRefs(org.apache.hadoop.hbase.TableName tableName, byte[] family, List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path>> files) throws org.apache.hadoop.hbase.replication.ReplicationException- Specified by:
addHFileRefs
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
isPeerEnabled
- Specified by:
isPeerEnabled
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
isSourceActive
- Specified by:
isSourceActive
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getSourceMetrics
- Specified by:
getSourceMetrics
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getReplicationEndpoint
- Specified by:
getReplicationEndpoint
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getSourceManager
- Specified by:
getSourceManager
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
tryThrottle
- Specified by:
tryThrottle
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
- Throws:
InterruptedException
-
postShipEdits
- Specified by:
postShipEdits
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getWALFileLengthProvider
public org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider getWALFileLengthProvider()- Specified by:
getWALFileLengthProvider
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getServerWALsBelongTo
- Specified by:
getServerWALsBelongTo
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-
getReplicationQueueStorage
- Specified by:
getReplicationQueueStorage
in interfaceorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
-