public class ReplicationSourceDummy extends Object implements ReplicationSourceInterface
| Constructor and Description |
|---|
ReplicationSourceDummy() |
| Modifier and Type | Method and Description |
|---|---|
void |
enqueueLog(Path log)
Add a log to the list of logs to replicate
|
Path |
getCurrentPath()
Get the current log that's replicated
|
String |
getPeerClusterId()
Get the id that the source is replicating to.
|
String |
getPeerClusterZnode()
Get the id that the source is replicating to
|
String |
getStats()
Get a string representation of the current statistics
for this source
|
void |
init(Configuration conf,
FileSystem fs,
ReplicationSourceManager manager,
ReplicationQueues rq,
ReplicationPeers rp,
Stoppable stopper,
String peerClusterId,
UUID clusterId,
ReplicationEndpoint replicationEndpoint,
MetricsSource metrics)
Initializer for the source
|
void |
startup()
Start the replication
|
void |
terminate(String reason)
End the replication
|
void |
terminate(String reason,
Exception e)
End the replication
|
public void init(Configuration conf,
FileSystem fs,
ReplicationSourceManager manager,
ReplicationQueues rq,
ReplicationPeers rp,
Stoppable stopper,
String peerClusterId,
UUID clusterId,
ReplicationEndpoint replicationEndpoint,
MetricsSource metrics)
throws IOException
ReplicationSourceInterfaceinit in interface ReplicationSourceInterfaceconf - the configuration to usefs - the file system to usemanager - the manager to usestopper - the stopper object for this region serverIOExceptionpublic void enqueueLog(Path log)
ReplicationSourceInterfaceenqueueLog in interface ReplicationSourceInterfacelog - path to the log to replicatepublic Path getCurrentPath()
ReplicationSourceInterfacegetCurrentPath in interface ReplicationSourceInterfacepublic void startup()
ReplicationSourceInterfacestartup in interface ReplicationSourceInterfacepublic void terminate(String reason)
ReplicationSourceInterfaceterminate in interface ReplicationSourceInterfacereason - why it's terminatingpublic void terminate(String reason, Exception e)
ReplicationSourceInterfaceterminate in interface ReplicationSourceInterfacereason - why it's terminatinge - the error that's causing itpublic String getPeerClusterZnode()
ReplicationSourceInterfacegetPeerClusterZnode in interface ReplicationSourceInterfacepublic String getPeerClusterId()
ReplicationSourceInterfacegetPeerClusterId in interface ReplicationSourceInterfacepublic String getStats()
ReplicationSourceInterfacegetStats in interface ReplicationSourceInterface