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
Fields inherited from class org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
quotaSnapshot, rss, tableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether or not compactions on this table should be disabled for this policy.void
disable()
Disables this policy.void
enable()
Enables this policy.Returns a logical name for theSpaceViolationPolicy
that this enforcement is for.Methods inherited from class org.apache.hadoop.hbase.quotas.policies.NoWritesViolationPolicyEnforcement
check
Methods inherited from class org.apache.hadoop.hbase.quotas.policies.DefaultViolationPolicyEnforcement
computeBulkLoadSize, shouldCheckBulkLoads
Methods 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:SpaceViolationPolicyEnforcement
Enables this policy. Not all policies have enable actions.- Specified by:
enable
in interfaceSpaceViolationPolicyEnforcement
- Overrides:
enable
in classNoWritesViolationPolicyEnforcement
-
disable
Description copied from interface:SpaceViolationPolicyEnforcement
Disables this policy. Not all policies have disable actions.- Specified by:
disable
in interfaceSpaceViolationPolicyEnforcement
- Overrides:
disable
in classNoWritesViolationPolicyEnforcement
-
getPolicyName
Description copied from interface:SpaceViolationPolicyEnforcement
Returns a logical name for theSpaceViolationPolicy
that this enforcement is for.- Specified by:
getPolicyName
in interfaceSpaceViolationPolicyEnforcement
- Overrides:
getPolicyName
in classNoWritesViolationPolicyEnforcement
-
areCompactionsDisabled
Description copied from interface:SpaceViolationPolicyEnforcement
Returns whether or not compactions on this table should be disabled for this policy.- Specified by:
areCompactionsDisabled
in interfaceSpaceViolationPolicyEnforcement
- Overrides:
areCompactionsDisabled
in classAbstractViolationPolicyEnforcement
-