@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.| 构造器和说明 |
|---|
DisableTableViolationPolicyEnforcement() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, shouldCheckBulkLoadsareCompactionsDisabled, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableNamepublic void enable()
throws IOException
SpaceViolationPolicyEnforcementenable 在接口中 SpaceViolationPolicyEnforcementenable 在类中 DefaultViolationPolicyEnforcementIOExceptionpublic void disable()
throws IOException
SpaceViolationPolicyEnforcementdisable 在接口中 SpaceViolationPolicyEnforcementdisable 在类中 DefaultViolationPolicyEnforcementIOExceptionpublic void check(Mutation m) throws SpaceLimitingException
SpaceViolationPolicyEnforcementMutation against this policy. If the
Mutation violates the policy, this policy should throw a
SpaceLimitingException.check 在接口中 SpaceViolationPolicyEnforcementcheck 在类中 DefaultViolationPolicyEnforcementSpaceLimitingException - When the given mutation violates this policy.public String getPolicyName()
SpaceViolationPolicyEnforcementSpaceViolationPolicy that this enforcement is for.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.