|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplicationSourceInterface
Interface that defines a replication source
Method Summary | |
---|---|
void |
enqueueLog(org.apache.hadoop.fs.Path log)
Add a log to the list of logs to replicate |
org.apache.hadoop.fs.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 |
void |
init(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
ReplicationSourceManager manager,
Stoppable stopper,
AtomicBoolean replicating,
String peerClusterId)
Initializer for the source |
void |
setSourceEnabled(boolean status)
Set if this source is enabled or disabled |
void |
startup()
Start the replication |
void |
terminate(String reason)
End the replication |
void |
terminate(String reason,
Exception cause)
End the replication |
Method Detail |
---|
void init(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, ReplicationSourceManager manager, Stoppable stopper, AtomicBoolean replicating, String peerClusterId) throws IOException
conf
- the configuration to usefs
- the file system to usemanager
- the manager to usestopper
- the stopper object for this region serverreplicating
- the status of the replication on this clusterpeerClusterId
- the id of the peer cluster
IOException
void enqueueLog(org.apache.hadoop.fs.Path log)
log
- path to the log to replicateorg.apache.hadoop.fs.Path getCurrentPath()
void startup()
void terminate(String reason)
reason
- why it's terminatingvoid terminate(String reason, Exception cause)
reason
- why it's terminatingcause
- the error that's causing itString getPeerClusterZnode()
String getPeerClusterId()
void setSourceEnabled(boolean status)
status
- the new status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |