|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.replication.regionserver.ReplicationSink
public class ReplicationSink
This class is responsible for replicating the edits coming from another cluster.
This replication process is currently waiting for the edits to be applied before the method can return. This means that the replication of edits is synchronized (after reading from HLogs in ReplicationSource) and that a single region server cannot receive edits from two sources at the same time This class uses the native HBase client in order to replicate entries. TODO make this class more like ReplicationSource wrt log handling
| Field Summary | |
|---|---|
static java.lang.String |
REPLICATION_LOG_DIR
|
| Constructor Summary | |
|---|---|
ReplicationSink(org.apache.hadoop.conf.Configuration conf,
Stoppable stopper)
Create a sink for replication |
|
| Method Summary | |
|---|---|
void |
replicateEntries(HLog.Entry[] entries)
Replicate this array of entries directly into the local cluster using the native client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REPLICATION_LOG_DIR
| Constructor Detail |
|---|
public ReplicationSink(org.apache.hadoop.conf.Configuration conf,
Stoppable stopper)
throws java.io.IOException
conf - conf objectstopper - boolean to tell this thread to stop
java.io.IOException - thrown when HDFS goes bad or bad file name| Method Detail |
|---|
public void replicateEntries(HLog.Entry[] entries)
throws java.io.IOException
entries -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||