Class DisableTableViolationPolicyEnforcement
java.lang.Object
org.apache.hadoop.hbase.quotas.policies.AbstractViolationPolicyEnforcement
org.apache.hadoop.hbase.quotas.policies.DefaultViolationPolicyEnforcement
org.apache.hadoop.hbase.quotas.policies.DisableTableViolationPolicyEnforcement
- All Implemented Interfaces:
SpaceViolationPolicyEnforcement
@Private
public class DisableTableViolationPolicyEnforcement
extends DefaultViolationPolicyEnforcement
A
SpaceViolationPolicyEnforcement
which disables the table. The enforcement counterpart
to SpaceViolationPolicy.DISABLE
. This violation policy is different from others as it
doesn't take action (i.e. enable/disable table) local to the RegionServer, like the other
ViolationPolicies do. In case of violation, the appropriate action is initiated by the master.-
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
-
DisableTableViolationPolicyEnforcement
-
-
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
- Throws:
IOException
-
disable
Description copied from interface:SpaceViolationPolicyEnforcement
Disables this policy. Not all policies have disable actions.- Specified by:
disable
in interfaceSpaceViolationPolicyEnforcement
- Overrides:
disable
in classDefaultViolationPolicyEnforcement
- Throws:
IOException
-
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
-