public class DisableTableViolationPolicyEnforcement extends AbstractViolationPolicyEnforcement
SpaceViolationPolicyEnforcement which disables the table. The enforcement
countepart to SpaceViolationPolicy.DISABLE.| Constructor and Description |
|---|
DisableTableViolationPolicyEnforcement() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(Mutation m)
Checks the given
Mutation against this policy. |
void |
disable()
Disables this policy.
|
void |
enable()
Enables this policy.
|
String |
getPolicyName()
Returns a logical name for the
SpaceViolationPolicy that this enforcement is for. |
areCompactionsDisabled, checkBulkLoad, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableName, shouldCheckBulkLoadspublic DisableTableViolationPolicyEnforcement()
public void enable()
throws IOException
SpaceViolationPolicyEnforcementIOExceptionpublic void disable()
throws IOException
SpaceViolationPolicyEnforcementIOExceptionpublic void check(Mutation m) throws SpaceLimitingException
SpaceViolationPolicyEnforcementMutation against this policy. If the
Mutation violates the policy, this policy should throw a
SpaceLimitingException.SpaceLimitingException - When the given mutation violates this policy.public String getPolicyName()
SpaceViolationPolicyEnforcementSpaceViolationPolicy that this enforcement is for.