@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class AbstractViolationPolicyEnforcement extends Object implements SpaceViolationPolicyEnforcement
SpaceViolationPolicyEnforcement
.Modifier and Type | Field and Description |
---|---|
(package private) SpaceQuotaSnapshot |
quotaSnapshot |
(package private) RegionServerServices |
rss |
(package private) TableName |
tableName |
Constructor and Description |
---|
AbstractViolationPolicyEnforcement() |
Modifier and Type | Method and Description |
---|---|
boolean |
areCompactionsDisabled()
Returns whether or not compactions on this table should be disabled for this policy.
|
SpaceQuotaSnapshot |
getQuotaSnapshot()
Returns the
SpaceQuotaSnapshot this was initialized with. |
RegionServerServices |
getRegionServerServices() |
TableName |
getTableName() |
void |
initialize(RegionServerServices rss,
TableName tableName,
SpaceQuotaSnapshot snapshot)
Initializes this policy instance.
|
void |
setQuotaSnapshot(SpaceQuotaSnapshot snapshot) |
void |
setRegionServerServices(RegionServerServices rss) |
void |
setTableName(TableName tableName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
check, checkBulkLoad, disable, enable, getPolicyName, shouldCheckBulkLoads
SpaceQuotaSnapshot quotaSnapshot
public AbstractViolationPolicyEnforcement()
public void setRegionServerServices(RegionServerServices rss)
public void setTableName(TableName tableName)
public RegionServerServices getRegionServerServices()
public TableName getTableName()
public void setQuotaSnapshot(SpaceQuotaSnapshot snapshot)
public SpaceQuotaSnapshot getQuotaSnapshot()
SpaceViolationPolicyEnforcement
SpaceQuotaSnapshot
this
was initialized with.getQuotaSnapshot
in interface SpaceViolationPolicyEnforcement
public void initialize(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot)
SpaceViolationPolicyEnforcement
initialize
in interface SpaceViolationPolicyEnforcement
public boolean areCompactionsDisabled()
SpaceViolationPolicyEnforcement
areCompactionsDisabled
in interface SpaceViolationPolicyEnforcement
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.