Package | Description |
---|---|
org.apache.hadoop.hbase |
Modifier and Type | Interface and Description |
---|---|
static interface |
Waiter.ExplainingPredicate<E extends Exception>
A mixin interface, can be used with
Waiter to explain failed state. |
Modifier and Type | Method and Description |
---|---|
Waiter.Predicate<IOException> |
HBaseTestingUtility.predicateTableAvailable(TableName tableName)
Returns a
Waiter.Predicate for checking that table is enabled |
Waiter.Predicate<IOException> |
HBaseTestingUtility.predicateTableDisabled(TableName tableName)
Returns a
Waiter.Predicate for checking that table is enabled |
Waiter.Predicate<IOException> |
HBaseTestingUtility.predicateTableEnabled(TableName tableName)
Returns a
Waiter.Predicate for checking that table is enabled |
Modifier and Type | Method and Description |
---|---|
static String |
Waiter.getExplanation(Waiter.Predicate explain) |
static <E extends Exception> |
Waiter.waitFor(Configuration conf,
long timeout,
long interval,
boolean failIfTimeout,
Waiter.Predicate<E> predicate)
Waits up to the duration equal to the specified timeout multiplied by the
Waiter.getWaitForRatio(Configuration) for the given Waiter.Predicate to become
true , failing the test if the timeout is reached, the Predicate is still
false and failIfTimeout is set as true . |
static <E extends Exception> |
Waiter.waitFor(Configuration conf,
long timeout,
long interval,
Waiter.Predicate<E> predicate)
Waits up to the duration equal to the specified timeout multiplied by the
Waiter.getWaitForRatio(Configuration) for the given Waiter.Predicate to become
true , failing the test if the timeout is reached and the Predicate is still
false . |
static <E extends Exception> |
Waiter.waitFor(Configuration conf,
long timeout,
Waiter.Predicate<E> predicate)
Waits up to the duration equal to the specified timeout multiplied by the
Waiter.getWaitForRatio(Configuration) for the given Waiter.Predicate to become
true , failing the test if the timeout is reached and the Predicate is still
false . |
<E extends Exception> |
HBaseTestingUtility.waitFor(long timeout,
long interval,
boolean failIfTimeout,
Waiter.Predicate<E> predicate)
Wrapper method for
Waiter.waitFor(Configuration, long, long, boolean, Predicate) . |
<E extends Exception> |
HBaseTestingUtility.waitFor(long timeout,
long interval,
Waiter.Predicate<E> predicate)
Wrapper method for
Waiter.waitFor(Configuration, long, long, Predicate) . |
<E extends Exception> |
HBaseTestingUtility.waitFor(long timeout,
Waiter.Predicate<E> predicate)
Wrapper method for
Waiter.waitFor(Configuration, long, Predicate) . |