|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.replication.regionserver.Replication
public class Replication
Replication serves as an umbrella over the setup of replication and is used by HRS.
| Constructor Summary | |
|---|---|
Replication(org.apache.hadoop.conf.Configuration conf,
HServerInfo hsi,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path logDir,
org.apache.hadoop.fs.Path oldLogDir,
AtomicBoolean stopRequested)
Instantiate the replication management (if rep is enabled). |
|
| Method Summary | |
|---|---|
void |
addLogEntryVisitor(HLog hlog)
Add this class as a log entry visitor for HLog if replication is enabled |
ReplicationSourceManager |
getReplicationManager()
Get the replication sources manager |
void |
join()
Join with the replication threads |
void |
replicateLogEntries(HLog.Entry[] entries)
Carry on the list of log entries down to the sink |
void |
startReplicationServices()
If replication is enabled and this cluster is a master, it starts |
void |
visitLogEntryBeforeWrite(HRegionInfo info,
HLogKey logKey,
WALEdit logEdit)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Replication(org.apache.hadoop.conf.Configuration conf,
HServerInfo hsi,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path logDir,
org.apache.hadoop.fs.Path oldLogDir,
AtomicBoolean stopRequested)
throws IOException
conf - conf to usehsi - the info if this region serverfs - handle to the filesystemoldLogDir - directory where logs are archivedstopRequested - boolean that tells us if we are shutting down
IOException| Method Detail |
|---|
public void join()
public void replicateLogEntries(HLog.Entry[] entries)
throws IOException
entries - list of entries to replicate
IOException
public void startReplicationServices()
throws IOException
IOExceptionpublic ReplicationSourceManager getReplicationManager()
public void visitLogEntryBeforeWrite(HRegionInfo info,
HLogKey logKey,
WALEdit logEdit)
visitLogEntryBeforeWrite in interface LogEntryVisitorpublic void addLogEntryVisitor(HLog hlog)
hlog - log that was add ourselves on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||