Uses of Interface
org.apache.hadoop.hbase.Waiter.Predicate
-
Uses of Waiter.Predicate in org.apache.hadoop.hbase
Modifier and TypeInterfaceDescriptionstatic interface
Waiter.ExplainingPredicate<E extends Exception>
A mixin interface, can be used withWaiter
to explain failed state.Modifier and TypeClassDescriptionclass
An implementation ofWaiter.ExplainingPredicate
that uses HamcrestMatcher
for both predicate evaluation and explanation.Modifier and TypeMethodDescriptionHBaseTestingUtil.predicateTableAvailable
(org.apache.hadoop.hbase.TableName tableName) Returns aWaiter.Predicate
for checking that table is enabledHBaseTestingUtil.predicateTableDisabled
(org.apache.hadoop.hbase.TableName tableName) Returns aWaiter.Predicate
for checking that table is enabledHBaseTestingUtil.predicateTableEnabled
(org.apache.hadoop.hbase.TableName tableName) Returns aWaiter.Predicate
for checking that table is enabledModifier and TypeMethodDescriptionstatic String
Waiter.getExplanation
(Waiter.Predicate<?> explain) <E extends Exception>
longHBaseCommonTestingUtil.waitFor
(long timeout, long interval, boolean failIfTimeout, Waiter.Predicate<E> predicate) Wrapper method forWaiter.waitFor(Configuration, long, long, boolean, Predicate)
.<E extends Exception>
longHBaseCommonTestingUtil.waitFor
(long timeout, long interval, Waiter.Predicate<E> predicate) Wrapper method forWaiter.waitFor(Configuration, long, long, Predicate)
.<E extends Exception>
longHBaseCommonTestingUtil.waitFor
(long timeout, Waiter.Predicate<E> predicate) Wrapper method forWaiter.waitFor(Configuration, long, Predicate)
.static <E extends Exception>
longWaiter.waitFor
(org.apache.hadoop.conf.Configuration conf, long timeout, long interval, boolean failIfTimeout, Waiter.Predicate<E> predicate) Waits up to the duration equal to the specified timeout multiplied by theWaiter.getWaitForRatio(Configuration)
for the givenWaiter.Predicate
to becometrue
, failing the test if the timeout is reached, the Predicate is stillfalse
and failIfTimeout is set astrue
.static <E extends Exception>
longWaiter.waitFor
(org.apache.hadoop.conf.Configuration conf, long timeout, long interval, Waiter.Predicate<E> predicate) Waits up to the duration equal to the specified timeout multiplied by theWaiter.getWaitForRatio(Configuration)
for the givenWaiter.Predicate
to becometrue
, failing the test if the timeout is reached and the Predicate is stillfalse
.static <E extends Exception>
longWaiter.waitFor
(org.apache.hadoop.conf.Configuration conf, long timeout, Waiter.Predicate<E> predicate) Waits up to the duration equal to the specified timeout multiplied by theWaiter.getWaitForRatio(Configuration)
for the givenWaiter.Predicate
to becometrue
, failing the test if the timeout is reached and the Predicate is stillfalse
. -
Uses of Waiter.Predicate in org.apache.hadoop.hbase.quotas
Modifier and TypeClassDescription(package private) static class
Predicate that waits for all store files in a table to have no compacted files.(package private) static class
Abstraction to simplify the case where a test needs to verify a certain state on aSpaceQuotaSnapshot
.