Uses of Class
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
Package
Description
Provides HBase Client
-
Uses of org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot in org.apache.hadoop.hbase.client
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
HBaseAdmin.getCurrentSpaceQuotaSnapshot
(String namespace) org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
HBaseAdmin.getCurrentSpaceQuotaSnapshot
(org.apache.hadoop.hbase.TableName tableName) Modifier and TypeMethodDescriptionMap<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> HBaseAdmin.getRegionServerSpaceQuotaSnapshots
(org.apache.hadoop.hbase.ServerName serverName) -
Uses of org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot in org.apache.hadoop.hbase.quotas
Modifier and TypeFieldDescriptionstatic final org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
QuotaSnapshotStore.NO_QUOTA
Singleton to represent a table without a quota defined.Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
QuotaTableUtil.getCurrentSnapshotFromQuotaTable
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tableName) Returns the current space quota snapshot of the giventableName
fromQuotaTableUtil.QUOTA_TABLE_NAME
or null if the no quota information is available for that tableName.org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
NamespaceQuotaSnapshotStore.getCurrentState
(String namespace) org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
QuotaSnapshotStore.getCurrentState
(T subject) Returns the currentSpaceQuotaSnapshot
for the givensubject
.org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
TableQuotaSnapshotStore.getCurrentState
(org.apache.hadoop.hbase.TableName table) static org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
SpaceQuotaSnapshot.getNoSuchSnapshot()
Returns a singleton that corresponds to no snapshot information.org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
SpaceViolationPolicyEnforcement.getQuotaSnapshot()
Returns theSpaceQuotaSnapshot
this
was initialized with.org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
NamespaceQuotaSnapshotStore.getTargetState
(String subject, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceQuota) org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
QuotaSnapshotStore.getTargetState
(T subject, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceQuota) Computes the targetSpaceQuotaSnapshot
for the givensubject
andspaceQuota
.org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
TableQuotaSnapshotStore.getTargetState
(org.apache.hadoop.hbase.TableName table, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceQuota) static org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
SpaceQuotaSnapshot.toSpaceQuotaSnapshot
(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot proto) Modifier and TypeMethodDescriptionMap<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> RegionServerSpaceQuotaManager.copyQuotaSnapshots()
Copies the lastSpaceQuotaSnapshot
s that were recorded.Map<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> SpaceQuotaRefresherChore.fetchSnapshotsFromQuotaTable()
Reads all quota snapshots from the quota table.Map<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> RegionServerSpaceQuotaManager.getActivePoliciesAsMap()
Converts a map of table toSpaceViolationPolicyEnforcement
s intoSpaceViolationPolicy
s.QuotaObserverChore.getNamespaceQuotaSnapshots()
Returns an unmodifiable view over the currentSpaceQuotaSnapshot
objects for each HBase namespace with a quota defined.static Map<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> QuotaTableUtil.getSnapshots
(org.apache.hadoop.hbase.client.Connection conn) Fetches allSpaceQuotaSnapshot
objects from thehbase:quota
table.Map<org.apache.hadoop.hbase.TableName,
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> QuotaObserverChore.getTableQuotaSnapshots()
Returns an unmodifiable view over the currentSpaceQuotaSnapshot
objects for each HBase table with a quota defined.Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.quotas.SpaceViolationPolicyEnforcement
SpaceViolationPolicyEnforcementFactory.create
(org.apache.hadoop.hbase.regionserver.RegionServerServices rss, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) Constructs the appropriateSpaceViolationPolicyEnforcement
for tables that are in violation of their space quota.org.apache.hadoop.hbase.quotas.SpaceViolationPolicyEnforcement
SpaceViolationPolicyEnforcementFactory.createWithoutViolation
(org.apache.hadoop.hbase.regionserver.RegionServerServices rss, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) Creates the "default"SpaceViolationPolicyEnforcement
for a table that isn't in violation.void
RegionServerSpaceQuotaManager.enforceViolationPolicy
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) Enforces the given violationPolicy on the given table in this RegionServer.void
SpaceViolationPolicyEnforcement.initialize
(org.apache.hadoop.hbase.regionserver.RegionServerServices rss, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) Initializes this policy instance.void
NamespaceQuotaSnapshotStore.setCurrentState
(String namespace, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) void
QuotaSnapshotStore.setCurrentState
(T subject, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot state) Persists the currentSpaceQuotaSnapshot
for thesubject
.void
TableQuotaSnapshotStore.setCurrentState
(org.apache.hadoop.hbase.TableName table, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot
SpaceQuotaSnapshot.toProtoSnapshot
(org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) void
SpaceQuotaSnapshotNotifier.transitionTable
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) Informs the cluster of the current state of a space quota for a table.void
TableSpaceQuotaSnapshotNotifier.transitionTable
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) Modifier and TypeMethodDescriptionstatic void
QuotaTableUtil.extractQuotaSnapshot
(org.apache.hadoop.hbase.client.Result result, Map<org.apache.hadoop.hbase.TableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots) Extracts theSpaceViolationPolicy
andTableName
from the providedResult
and adds them to the givenMap
.void
RegionServerSpaceQuotaManager.updateQuotaSnapshot
(Map<org.apache.hadoop.hbase.TableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> newSnapshots) Updates the currentSpaceQuotaSnapshot
s for the RegionServer. -
Uses of org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot in org.apache.hadoop.hbase.quotas.policies
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
AbstractViolationPolicyEnforcement.getQuotaSnapshot()
Modifier and TypeMethodDescriptionvoid
AbstractViolationPolicyEnforcement.initialize
(org.apache.hadoop.hbase.regionserver.RegionServerServices rss, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot) void
AbstractViolationPolicyEnforcement.setQuotaSnapshot
(org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot snapshot)