Class TestZooKeeperScanPolicyObserver
java.lang.Object
org.apache.hadoop.hbase.coprocessor.example.TestZooKeeperScanPolicyObserver
@Tag("org.apache.hadoop.hbase.testclassification.CoprocessorTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestZooKeeperScanPolicyObserver
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertNotExists(int start, int end) private voidassertValueEquals(int start, int end) private voidput(int start, int end, long ts) private voidsetExpireBefore(long time) static voidsetUp()static voidtearDown()voidtest()
-
Field Details
-
UTIL
-
NAME
-
FAMILY
-
QUALIFIER
-
TABLE
-
-
Constructor Details
-
TestZooKeeperScanPolicyObserver
public TestZooKeeperScanPolicyObserver()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
setExpireBefore
private void setExpireBefore(long time) throws org.apache.zookeeper.KeeperException, InterruptedException, IOException - Throws:
org.apache.zookeeper.KeeperExceptionInterruptedExceptionIOException
-
assertValueEquals
- Throws:
IOException
-
assertNotExists
- Throws:
IOException
-
put
- Throws:
IOException
-
test
@Test public void test() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException- Throws:
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedException
-