public static class TestReplicationEndpoint.SleepingReplicationEndpointForTest extends TestReplicationEndpoint.ReplicationEndpointForTest
Snippet for `hbase shell`:
create 't', 'f' add_peer '1', ENDPOINT_CLASSNAME => 'org.apache.hadoop.hbase.replication.' + \ 'TestReplicationEndpoint$SleepingReplicationEndpointForTest' alter 't', {NAME=>'f', REPLICATION_SCOPE=>1}
Modifier and Type | Field and Description |
---|---|
private long |
duration |
contructedCount, lastEntries, replicateCount, startedCount, stoppedCount, uuid
Constructor and Description |
---|
SleepingReplicationEndpointForTest() |
Modifier and Type | Method and Description |
---|---|
void |
init(org.apache.hadoop.hbase.replication.ReplicationEndpoint.Context context) |
boolean |
replicate(org.apache.hadoop.hbase.replication.ReplicationEndpoint.ReplicateContext context) |
canReplicateToSameCluster, doStart, doStop, getPeerUUID, start, stop
getNamespaceTableCfWALEntryFilter, getScopeWALEntryFilter, getWALEntryfilter, isStarting, peerConfigUpdated
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
private long duration
public SleepingReplicationEndpointForTest()
public void init(org.apache.hadoop.hbase.replication.ReplicationEndpoint.Context context) throws IOException
init
in interface org.apache.hadoop.hbase.replication.ReplicationEndpoint
init
in class org.apache.hadoop.hbase.replication.BaseReplicationEndpoint
IOException
public boolean replicate(org.apache.hadoop.hbase.replication.ReplicationEndpoint.ReplicateContext context)
replicate
in interface org.apache.hadoop.hbase.replication.ReplicationEndpoint
replicate
in class TestReplicationEndpoint.ReplicationEndpointForTest
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.