Class TestReplicationStateBasic
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationStateBasic
- Direct Known Subclasses:
TestReplicationStateZKImpl
White box testing for replication state interfaces. Implementations should extend this class, and
initialize the interfaces properly.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static String
protected static String
private static final org.slf4j.Logger
protected String
protected org.apache.hadoop.hbase.replication.ReplicationPeers
protected org.apache.hadoop.hbase.ServerName
protected org.apache.hadoop.hbase.ServerName
protected org.apache.hadoop.hbase.ServerName
protected static final int
protected static final int
protected static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertConnectedPeerStatus
(boolean status, String peerId) private void
assertNumberOfPeers
(int total) void
-
Field Details
-
LOG
-
server1
-
server2
-
server3
-
rp
-
ID_ONE
- See Also:
-
ID_TWO
- See Also:
-
KEY_ONE
-
KEY_TWO
-
OUR_KEY
-
zkTimeoutCount
-
ZK_MAX_COUNT
- See Also:
-
ZK_SLEEP_INTERVAL
- See Also:
-
-
Constructor Details
-
TestReplicationStateBasic
public TestReplicationStateBasic()
-
-
Method Details
-
testReplicationPeers
- Throws:
Exception
-
assertConnectedPeerStatus
- Throws:
Exception
-
assertNumberOfPeers
private void assertNumberOfPeers(int total) throws org.apache.hadoop.hbase.replication.ReplicationException - Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-