Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.quotas |
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 | Class and Description |
---|---|
class |
MatcherPredicate<T>
An implementation of
Waiter.ExplainingPredicate that uses Hamcrest Matcher for
both predicate evaluation and explanation. |
Modifier and Type | Method and Description |
---|---|
Waiter.Predicate<IOException> |
HBaseTestingUtility.predicateTableAvailable(org.apache.hadoop.hbase.TableName tableName)
Returns a
Waiter.Predicate for checking that table is enabled |
Waiter.Predicate<IOException> |
HBaseTestingUtility.predicateTableDisabled(org.apache.hadoop.hbase.TableName tableName)
Returns a
Waiter.Predicate for checking that table is enabled |
Waiter.Predicate<IOException> |
HBaseTestingUtility.predicateTableEnabled(org.apache.hadoop.hbase.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(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 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(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 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(org.apache.hadoop.conf.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> |
HBaseCommonTestingUtility.waitFor(long timeout,
long interval,
boolean failIfTimeout,
Waiter.Predicate<E> predicate)
Wrapper method for
Waiter.waitFor(Configuration, long, long, boolean, Predicate) . |
<E extends Exception> |
HBaseCommonTestingUtility.waitFor(long timeout,
long interval,
Waiter.Predicate<E> predicate)
Wrapper method for
Waiter.waitFor(Configuration, long, long, Predicate) . |
<E extends Exception> |
HBaseCommonTestingUtility.waitFor(long timeout,
Waiter.Predicate<E> predicate)
Wrapper method for
Waiter.waitFor(Configuration, long, Predicate) . |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SpaceQuotaHelperForTests.NoFilesToDischarge
Predicate that waits for all store files in a table to have no compacted files.
|
(package private) static class |
SpaceQuotaHelperForTests.SpaceQuotaSnapshotPredicate
Abstraction to simplify the case where a test needs to verify a certain state on a
SpaceQuotaSnapshot . |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.