abstract static class SpaceQuotaHelperForTests.SpaceQuotaSnapshotPredicate extends Object implements Waiter.Predicate<Exception>
SpaceQuotaSnapshot
. This class fails-fast when there is no such
snapshot obtained from the Master. As such, it is not useful to verify the
lack of a snapshot.Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.client.Connection |
conn |
private String |
ns |
private org.apache.hadoop.hbase.TableName |
tn |
Constructor and Description |
---|
SpaceQuotaSnapshotPredicate(org.apache.hadoop.hbase.client.Connection conn,
String ns) |
SpaceQuotaSnapshotPredicate(org.apache.hadoop.hbase.client.Connection conn,
org.apache.hadoop.hbase.TableName tn) |
SpaceQuotaSnapshotPredicate(org.apache.hadoop.hbase.client.Connection conn,
org.apache.hadoop.hbase.TableName tn,
String ns) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate()
Perform a predicate evaluation.
|
(package private) abstract boolean |
evaluate(org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot)
Must determine if the given
SpaceQuotaSnapshot meets some criteria. |
private final org.apache.hadoop.hbase.client.Connection conn
private final org.apache.hadoop.hbase.TableName tn
SpaceQuotaSnapshotPredicate(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn)
SpaceQuotaSnapshotPredicate(org.apache.hadoop.hbase.client.Connection conn, String ns)
SpaceQuotaSnapshotPredicate(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn, String ns)
public boolean evaluate() throws Exception
Waiter.Predicate
evaluate
in interface Waiter.Predicate<Exception>
Exception
abstract boolean evaluate(org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) throws Exception
SpaceQuotaSnapshot
meets some criteria.snapshot
- a non-null snapshot obtained from the HBase MasterException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.