Class NoWritesCompactionsViolationPolicyEnforcement
java.lang.Object
org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
org.apache.hadoop.hbase.quotas.policies.DefaultViolationPolicyEnforcement
org.apache.hadoop.hbase.quotas.policies.NoWritesViolationPolicyEnforcement
org.apache.hadoop.hbase.quotas.policies.NoWritesCompactionsViolationPolicyEnforcement
- All Implemented Interfaces:
SpaceViolationPolicyEnforcement
@Private
public class NoWritesCompactionsViolationPolicyEnforcement
extends NoWritesViolationPolicyEnforcement
A
SpaceViolationPolicyEnforcement implementation which disables all updates and
compactions. The enforcement counterpart to SpaceViolationPolicy.NO_WRITES_COMPACTIONS.-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
quotaSnapshot, rss, tableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether or not compactions on this table should be disabled for this policy.voiddisable()Disables this policy.voidenable()Enables this policy.Returns a logical name for theSpaceViolationPolicythat this enforcement is for.Methods inherited from class org.apache.hadoop.hbase.quotas.policies.NoWritesViolationPolicyEnforcement
checkMethods inherited from class org.apache.hadoop.hbase.quotas.policies.DefaultViolationPolicyEnforcement
computeBulkLoadSize, shouldCheckBulkLoadsMethods inherited from class org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
getFileSize, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableName
-
Field Details
-
LOG
-
disableCompactions
-
-
Constructor Details
-
NoWritesCompactionsViolationPolicyEnforcement
-
-
Method Details
-
enable
Description copied from interface:SpaceViolationPolicyEnforcementEnables this policy. Not all policies have enable actions.- Specified by:
enablein interfaceSpaceViolationPolicyEnforcement- Overrides:
enablein classNoWritesViolationPolicyEnforcement
-
disable
Description copied from interface:SpaceViolationPolicyEnforcementDisables this policy. Not all policies have disable actions.- Specified by:
disablein interfaceSpaceViolationPolicyEnforcement- Overrides:
disablein classNoWritesViolationPolicyEnforcement
-
getPolicyName
Description copied from interface:SpaceViolationPolicyEnforcementReturns a logical name for theSpaceViolationPolicythat this enforcement is for.- Specified by:
getPolicyNamein interfaceSpaceViolationPolicyEnforcement- Overrides:
getPolicyNamein classNoWritesViolationPolicyEnforcement
-
areCompactionsDisabled
Description copied from interface:SpaceViolationPolicyEnforcementReturns whether or not compactions on this table should be disabled for this policy.- Specified by:
areCompactionsDisabledin interfaceSpaceViolationPolicyEnforcement- Overrides:
areCompactionsDisabledin classAbstractViolationPolicyEnforcement
-