Package org.apache.hadoop.hbase.quotas
Class SpaceViolationPolicyEnforcementFactory
java.lang.Object
org.apache.hadoop.hbase.quotas.SpaceViolationPolicyEnforcementFactory
A factory class for instantiating
SpaceViolationPolicyEnforcement
instances.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Constructs the appropriateSpaceViolationPolicyEnforcement
for tables that are in violation of their space quota.createWithoutViolation
(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Creates the "default"SpaceViolationPolicyEnforcement
for a table that isn't in violation.Returns an instance of this factory.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SpaceViolationPolicyEnforcementFactory
private SpaceViolationPolicyEnforcementFactory()
-
-
Method Details
-
getInstance
Returns an instance of this factory. -
create
public SpaceViolationPolicyEnforcement create(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Constructs the appropriateSpaceViolationPolicyEnforcement
for tables that are in violation of their space quota. -
createWithoutViolation
public SpaceViolationPolicyEnforcement createWithoutViolation(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Creates the "default"SpaceViolationPolicyEnforcement
for a table that isn't in violation. This is used to have uniform policy checking for tables in and not quotas. This policy will still verify that new bulk loads do not exceed the configured quota limit.- Parameters:
rss
- RegionServerServices instance the policy enforcement should use.tableName
- The target HBase table.snapshot
- The current quota snapshot for thetableName
, can be null.
-