@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
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. |
computeBulkLoadSize, shouldCheckBulkLoads
areCompactionsDisabled, getFileSize, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableName
public DisableTableViolationPolicyEnforcement()
public void enable() throws IOException
SpaceViolationPolicyEnforcement
enable
in interface SpaceViolationPolicyEnforcement
enable
in class DefaultViolationPolicyEnforcement
IOException
public void disable() throws IOException
SpaceViolationPolicyEnforcement
disable
in interface SpaceViolationPolicyEnforcement
disable
in class DefaultViolationPolicyEnforcement
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
.check
in interface SpaceViolationPolicyEnforcement
check
in class DefaultViolationPolicyEnforcement
SpaceLimitingException
- When the given mutation violates this policy.public String getPolicyName()
SpaceViolationPolicyEnforcement
SpaceViolationPolicy
that this enforcement is for.getPolicyName
in interface SpaceViolationPolicyEnforcement
getPolicyName
in class DefaultViolationPolicyEnforcement
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.