Package org.apache.hadoop.hbase.quotas
Class SpaceQuotaSnapshotNotifierForTest
java.lang.Object
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotNotifierForTest
- All Implemented Interfaces:
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotNotifier
@Private
public class SpaceQuotaSnapshotNotifierForTest
extends Object
implements org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotNotifier
A SpaceQuotaSnapshotNotifier implementation for testing.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final Map<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Map<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> void
initialize
(org.apache.hadoop.hbase.client.Connection conn) void
transitionTable
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot)
-
Field Details
-
LOG
-
tableQuotaSnapshots
private final Map<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> tableQuotaSnapshots
-
-
Constructor Details
-
SpaceQuotaSnapshotNotifierForTest
public SpaceQuotaSnapshotNotifierForTest()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceorg.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotNotifier
-
transitionTable
public void transitionTable(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) - Specified by:
transitionTable
in interfaceorg.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotNotifier
-
copySnapshots
public Map<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> copySnapshots() -
clearSnapshots
-