Class NoInsertsViolationPolicyEnforcement
java.lang.Object
org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
org.apache.hadoop.hbase.quotas.policies.DefaultViolationPolicyEnforcement
org.apache.hadoop.hbase.quotas.policies.NoInsertsViolationPolicyEnforcement
- All Implemented Interfaces:
SpaceViolationPolicyEnforcement
A
SpaceViolationPolicyEnforcement
which disallows any inserts to the table. The
enforcement counterpart to SpaceViolationPolicy.NO_INSERTS
.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
quotaSnapshot, rss, tableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks the givenMutation
againstthis
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.DefaultViolationPolicyEnforcement
computeBulkLoadSize, shouldCheckBulkLoads
Methods inherited from class org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
areCompactionsDisabled, getFileSize, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableName
-
Constructor Details
-
NoInsertsViolationPolicyEnforcement
public NoInsertsViolationPolicyEnforcement()
-
-
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 classDefaultViolationPolicyEnforcement
-
disable
Description copied from interface:SpaceViolationPolicyEnforcement
Disables this policy. Not all policies have disable actions.- Specified by:
disable
in interfaceSpaceViolationPolicyEnforcement
- Overrides:
disable
in classDefaultViolationPolicyEnforcement
-
check
Description copied from interface:SpaceViolationPolicyEnforcement
Checks the givenMutation
againstthis
policy. If theMutation
violates the policy, this policy should throw aSpaceLimitingException
.- Specified by:
check
in interfaceSpaceViolationPolicyEnforcement
- Overrides:
check
in classDefaultViolationPolicyEnforcement
- Throws:
SpaceLimitingException
- When the given mutation violates this policy.
-
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 classDefaultViolationPolicyEnforcement
-