|
||||||||||
| 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 |
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,
AtomicBoolean stopper,
AtomicBoolean replicating,
String peerClusterId)
Initializer for the source |
void |
startup()
Start the replication |
void |
terminate()
End the replication |
| Method Detail |
|---|
void init(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
ReplicationSourceManager manager,
AtomicBoolean 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
IOExceptionvoid enqueueLog(org.apache.hadoop.fs.Path log)
log - path to the log to replicateorg.apache.hadoop.fs.Path getCurrentPath()
void startup()
void terminate()
String getPeerClusterZnode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||