@InterfaceAudience.Private public class NoWritesCompactionsViolationPolicyEnforcement extends NoWritesViolationPolicyEnforcement
SpaceViolationPolicyEnforcement
implementation which disables all updates and
compactions. The enforcement counterpart to SpaceViolationPolicy.NO_WRITES_COMPACTIONS
.Modifier and Type | Field and Description |
---|---|
private AtomicBoolean |
disableCompactions |
private static org.slf4j.Logger |
LOG |
quotaSnapshot, rss, tableName
Constructor and Description |
---|
NoWritesCompactionsViolationPolicyEnforcement() |
Modifier and Type | Method and Description |
---|---|
boolean |
areCompactionsDisabled()
Returns whether or not compactions on this table should be disabled for 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. |
check
checkBulkLoad, shouldCheckBulkLoads
getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableName
private static final org.slf4j.Logger LOG
private AtomicBoolean disableCompactions
public NoWritesCompactionsViolationPolicyEnforcement()
public void enable()
SpaceViolationPolicyEnforcement
enable
in interface SpaceViolationPolicyEnforcement
enable
in class NoWritesViolationPolicyEnforcement
public void disable()
SpaceViolationPolicyEnforcement
disable
in interface SpaceViolationPolicyEnforcement
disable
in class NoWritesViolationPolicyEnforcement
public String getPolicyName()
SpaceViolationPolicyEnforcement
SpaceViolationPolicy
that this enforcement is for.getPolicyName
in interface SpaceViolationPolicyEnforcement
getPolicyName
in class NoWritesViolationPolicyEnforcement
public boolean areCompactionsDisabled()
SpaceViolationPolicyEnforcement
areCompactionsDisabled
in interface SpaceViolationPolicyEnforcement
areCompactionsDisabled
in class AbstractViolationPolicyEnforcement
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.