public class ReplicationSourceDummy extends Object implements org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
Modifier and Type | Field and Description |
---|---|
(package private) org.apache.hadoop.fs.Path |
currentPath |
(package private) org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager |
manager |
(package private) org.apache.hadoop.hbase.replication.regionserver.MetricsSource |
metrics |
(package private) String |
peerClusterId |
(package private) AtomicBoolean |
startup |
(package private) org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider |
walFileLengthProvider |
Constructor and Description |
---|
ReplicationSourceDummy() |
Modifier and Type | Method and Description |
---|---|
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) |
void |
enqueueLog(org.apache.hadoop.fs.Path log) |
org.apache.hadoop.fs.Path |
getCurrentPath() |
String |
getPeerId() |
String |
getQueueId() |
org.apache.hadoop.hbase.replication.ReplicationEndpoint |
getReplicationEndpoint() |
org.apache.hadoop.hbase.ServerName |
getServerWALsBelongTo() |
org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager |
getSourceManager() |
org.apache.hadoop.hbase.replication.regionserver.MetricsSource |
getSourceMetrics() |
String |
getStats() |
org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider |
getWALFileLengthProvider() |
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 |
isPeerEnabled() |
boolean |
isSourceActive() |
boolean |
isStartup() |
void |
postShipEdits(List<org.apache.hadoop.hbase.wal.WAL.Entry> entries,
int batchSize) |
void |
startup() |
void |
terminate(String reason) |
void |
terminate(String reason,
Exception e) |
void |
terminate(String reason,
Exception e,
boolean clearMetrics) |
void |
tryThrottle(int batchSize) |
org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager manager
String peerClusterId
org.apache.hadoop.fs.Path currentPath
org.apache.hadoop.hbase.replication.regionserver.MetricsSource metrics
org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider walFileLengthProvider
AtomicBoolean startup
public ReplicationSourceDummy()
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
init
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
IOException
public void enqueueLog(org.apache.hadoop.fs.Path log)
enqueueLog
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public org.apache.hadoop.fs.Path getCurrentPath()
getCurrentPath
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public void startup()
startup
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public boolean isStartup()
public void terminate(String reason)
terminate
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public void terminate(String reason, Exception e)
terminate
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public void terminate(String reason, Exception e, boolean clearMetrics)
terminate
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public String getQueueId()
getQueueId
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public String getPeerId()
getPeerId
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public String getStats()
getStats
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
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
addHFileRefs
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
org.apache.hadoop.hbase.replication.ReplicationException
public boolean isPeerEnabled()
isPeerEnabled
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public boolean isSourceActive()
isSourceActive
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public org.apache.hadoop.hbase.replication.regionserver.MetricsSource getSourceMetrics()
getSourceMetrics
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public org.apache.hadoop.hbase.replication.ReplicationEndpoint getReplicationEndpoint()
getReplicationEndpoint
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager getSourceManager()
getSourceManager
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public void tryThrottle(int batchSize) throws InterruptedException
tryThrottle
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
InterruptedException
public void postShipEdits(List<org.apache.hadoop.hbase.wal.WAL.Entry> entries, int batchSize)
postShipEdits
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider getWALFileLengthProvider()
getWALFileLengthProvider
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
public org.apache.hadoop.hbase.ServerName getServerWALsBelongTo()
getServerWALsBelongTo
in interface org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceInterface
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.