@InterfaceAudience.Private @InterfaceStability.Evolving public class SpaceViolationPolicyEnforcementFactory extends Object
SpaceViolationPolicyEnforcement
instances.Modifier and Type | Field and Description |
---|---|
private static SpaceViolationPolicyEnforcementFactory |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
SpaceViolationPolicyEnforcementFactory() |
Modifier and Type | Method and Description |
---|---|
SpaceViolationPolicyEnforcement |
create(RegionServerServices rss,
TableName tableName,
SpaceQuotaSnapshot snapshot)
Constructs the appropriate
SpaceViolationPolicyEnforcement for tables that are
in violation of their space quota. |
SpaceViolationPolicyEnforcement |
createWithoutViolation(RegionServerServices rss,
TableName tableName,
SpaceQuotaSnapshot snapshot)
Creates the "default"
SpaceViolationPolicyEnforcement for a table that isn't in
violation. |
static SpaceViolationPolicyEnforcementFactory |
getInstance()
Returns an instance of this factory.
|
private static final SpaceViolationPolicyEnforcementFactory INSTANCE
private SpaceViolationPolicyEnforcementFactory()
public static SpaceViolationPolicyEnforcementFactory getInstance()
public SpaceViolationPolicyEnforcement create(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot)
SpaceViolationPolicyEnforcement
for tables that are
in violation of their space quota.public SpaceViolationPolicyEnforcement createWithoutViolation(RegionServerServices rss, TableName tableName, SpaceQuotaSnapshot snapshot)
SpaceViolationPolicyEnforcement
for a table that isn't in
violation. This is used to have uniform policy checking for tables in and not quotas. This
policy will still verify that new bulk loads do not exceed the configured quota limit.rss
- RegionServerServices instance the policy enforcement should use.tableName
- The target HBase table.snapshot
- The current quota snapshot for the tableName
, can be null.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.