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, shouldCheckBulkLoads
public DisableTableViolationPolicyEnforcement()
public void enable() throws IOException
SpaceViolationPolicyEnforcement
IOException
public void disable() throws IOException
SpaceViolationPolicyEnforcement
IOException
public void check(Mutation m) throws SpaceLimitingException
SpaceViolationPolicyEnforcement
Mutation
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()
SpaceViolationPolicyEnforcement
SpaceViolationPolicy
that this enforcement is for.