Package org.apache.hadoop.hbase.quotas
Class TableSpaceQuotaSnapshotNotifier
java.lang.Object
org.apache.hadoop.hbase.quotas.TableSpaceQuotaSnapshotNotifier
- All Implemented Interfaces:
SpaceQuotaSnapshotNotifier
@Private
public class TableSpaceQuotaSnapshotNotifier
extends Object
implements SpaceQuotaSnapshotNotifier
A
SpaceQuotaSnapshotNotifier
which uses the hbase:quota table.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(Connection conn) Initializes the notifier.void
transitionTable
(TableName tableName, SpaceQuotaSnapshot snapshot) Informs the cluster of the current state of a space quota for a table.
-
Field Details
-
LOG
-
conn
-
-
Constructor Details
-
TableSpaceQuotaSnapshotNotifier
public TableSpaceQuotaSnapshotNotifier()
-
-
Method Details
-
transitionTable
Description copied from interface:SpaceQuotaSnapshotNotifier
Informs the cluster of the current state of a space quota for a table.- Specified by:
transitionTable
in interfaceSpaceQuotaSnapshotNotifier
- Parameters:
tableName
- The name of the table.snapshot
- The details of the space quota utilization.- Throws:
IOException
-
initialize
Description copied from interface:SpaceQuotaSnapshotNotifier
Initializes the notifier.- Specified by:
initialize
in interfaceSpaceQuotaSnapshotNotifier
-