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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Constructs the appropriateSpaceViolationPolicyEnforcementfor tables that are in violation of their space quota.createWithoutViolation(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Creates the "default"SpaceViolationPolicyEnforcementfor a table that isn't in violation.Returns an instance of this factory.
- 
Field Details- 
INSTANCE
 
- 
- 
Constructor Details- 
SpaceViolationPolicyEnforcementFactoryprivate SpaceViolationPolicyEnforcementFactory()
 
- 
- 
Method Details- 
getInstanceReturns an instance of this factory.
- 
createpublic SpaceViolationPolicyEnforcement create(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Constructs the appropriateSpaceViolationPolicyEnforcementfor tables that are in violation of their space quota.
- 
createWithoutViolationpublic SpaceViolationPolicyEnforcement createWithoutViolation(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot) Creates the "default"SpaceViolationPolicyEnforcementfor 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 the- tableName, can be null.
 
 
-