@InterfaceAudience.Private public class RegionReplicationSink extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BATCH_COUNT_CAPACITY |
static int |
BATCH_COUNT_CAPACITY_DEFAULT |
static String |
BATCH_SIZE_CAPACITY |
static long |
BATCH_SIZE_CAPACITY_DEFAULT |
static String |
META_EDIT_OPERATION_TIMEOUT_MS |
static long |
META_EDIT_OPERATION_TIMEOUT_MS_DEFAULT |
static String |
META_EDIT_RPC_TIMEOUT_MS |
static long |
META_EDIT_RPC_TIMEOUT_MS_DEFAULT |
static String |
OPERATION_TIMEOUT_MS |
static long |
OPERATION_TIMEOUT_MS_DEFAULT |
static String |
RETRIES_NUMBER |
static int |
RETRIES_NUMBER_DEFAULT |
static String |
RPC_TIMEOUT_MS |
static long |
RPC_TIMEOUT_MS_DEFAULT |
| Constructor and Description |
|---|
RegionReplicationSink(org.apache.hadoop.conf.Configuration conf,
RegionInfo primary,
TableDescriptor td,
RegionReplicationBufferManager manager,
Runnable flushRequester,
AsyncClusterConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(WALKeyImpl key,
WALEdit edit,
ServerCall<?> rpcCall)
Add this edit to replication queue.
|
void |
stop()
Stop the replication sink.
|
void |
waitUntilStopped()
Make sure that we have finished all the replicating requests.
|
public static final String RETRIES_NUMBER
public static final int RETRIES_NUMBER_DEFAULT
public static final String RPC_TIMEOUT_MS
public static final long RPC_TIMEOUT_MS_DEFAULT
public static final String OPERATION_TIMEOUT_MS
public static final long OPERATION_TIMEOUT_MS_DEFAULT
public static final String META_EDIT_RPC_TIMEOUT_MS
public static final long META_EDIT_RPC_TIMEOUT_MS_DEFAULT
public static final String META_EDIT_OPERATION_TIMEOUT_MS
public static final long META_EDIT_OPERATION_TIMEOUT_MS_DEFAULT
public static final String BATCH_SIZE_CAPACITY
public static final long BATCH_SIZE_CAPACITY_DEFAULT
public static final String BATCH_COUNT_CAPACITY
public static final int BATCH_COUNT_CAPACITY_DEFAULT
public RegionReplicationSink(org.apache.hadoop.conf.Configuration conf,
RegionInfo primary,
TableDescriptor td,
RegionReplicationBufferManager manager,
Runnable flushRequester,
AsyncClusterConnection conn)
public void add(WALKeyImpl key, WALEdit edit, ServerCall<?> rpcCall)
rpcCall is for retaining the cells if the edit is built within an rpc call and the
rpc call has cell scanner, which is off heap.public void stop()
public void waitUntilStopped()
throws InterruptedException
InterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.