@InterfaceAudience.Private public class DisableTableViolationPolicyEnforcement extends DefaultViolationPolicyEnforcement
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.quotaSnapshot, rss, tableName| Constructor and Description | 
|---|
| DisableTableViolationPolicyEnforcement() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | check(Mutation m)Checks the given  Mutationagainstthispolicy. | 
| void | disable()Disables this policy. | 
| void | enable()Enables this policy. | 
| String | getPolicyName()Returns a logical name for the  SpaceViolationPolicythat this enforcement is for. | 
computeBulkLoadSize, shouldCheckBulkLoadsareCompactionsDisabled, getFileSize, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableNamepublic DisableTableViolationPolicyEnforcement()
public void enable() throws IOException
SpaceViolationPolicyEnforcementenable in interface SpaceViolationPolicyEnforcementenable in class DefaultViolationPolicyEnforcementIOExceptionpublic void disable() throws IOException
SpaceViolationPolicyEnforcementdisable in interface SpaceViolationPolicyEnforcementdisable in class DefaultViolationPolicyEnforcementIOExceptionpublic void check(Mutation m) throws SpaceLimitingException
SpaceViolationPolicyEnforcementMutation against this policy. If the
 Mutation violates the policy, this policy should throw a
 SpaceLimitingException.check in interface SpaceViolationPolicyEnforcementcheck in class DefaultViolationPolicyEnforcementSpaceLimitingException - When the given mutation violates this policy.public String getPolicyName()
SpaceViolationPolicyEnforcementSpaceViolationPolicy that this enforcement is for.getPolicyName in interface SpaceViolationPolicyEnforcementgetPolicyName in class DefaultViolationPolicyEnforcementCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.