@InterfaceAudience.Private public class ReplicationSink extends Object
| Constructor and Description |
|---|
ReplicationSink(org.apache.hadoop.conf.Configuration conf,
Stoppable stopper)
Create a sink for replication
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
batch(TableName tableName,
Collection<List<Row>> allRows)
Do the changes and handle the pool
|
String |
getStats()
Get a string representation of this sink's metrics
|
void |
replicateEntries(List<AdminProtos.WALEntry> entries,
CellScanner cells)
Replicate this array of entries directly into the local cluster using the native client.
|
void |
stopReplicationSinkServices()
stop the thread pool executor.
|
public ReplicationSink(org.apache.hadoop.conf.Configuration conf,
Stoppable stopper)
throws IOException
conf - conf objectstopper - boolean to tell this thread to stopIOException - thrown when HDFS goes bad or bad file namepublic void replicateEntries(List<AdminProtos.WALEntry> entries, CellScanner cells) throws IOException
entries - cells - IOExceptionpublic void stopReplicationSinkServices()
protected void batch(TableName tableName, Collection<List<Row>> allRows) throws IOException
tableName - table to insert intoallRows - list of actionsIOExceptionpublic String getStats()
Copyright © 2014 The Apache Software Foundation. All rights reserved.