Package | Description |
---|---|
org.apache.hadoop.hbase.quotas |
Modifier and Type | Field and Description |
---|---|
(package private) SpaceViolationPolicy |
SpaceQuotaSnapshot.SpaceQuotaStatus.policy |
Modifier and Type | Method and Description |
---|---|
SpaceViolationPolicy |
SpaceQuotaSnapshot.SpaceQuotaStatus.getPolicy()
Returns the violation policy, which may be null.
|
protected static SpaceViolationPolicy |
QuotaTableUtil.getViolationPolicy(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota proto) |
static SpaceViolationPolicy |
SpaceViolationPolicy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpaceViolationPolicy[] |
SpaceViolationPolicy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceLimitRequest |
SpaceLimitSettings.buildProtoAddQuota(long sizeLimit,
SpaceViolationPolicy violationPolicy)
Builds a
QuotaProtos.SpaceQuota protobuf object given the arguments. |
protected static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota |
QuotaTableUtil.getProtoViolationPolicy(SpaceViolationPolicy policy) |
private boolean |
QuotaObserverChore.isDisableSpaceViolationPolicy(SpaceViolationPolicy currPolicy,
SpaceViolationPolicy targetPolicy)
Method to check whether we are dealing with DISABLE
SpaceViolationPolicy . |
static QuotaSettings |
QuotaSettingsFactory.limitNamespaceSpace(String namespace,
long sizeLimit,
SpaceViolationPolicy violationPolicy)
Creates a
QuotaSettings object to limit the FileSystem space usage for the given
namespace to the given size in bytes. |
static QuotaSettings |
QuotaSettingsFactory.limitTableSpace(TableName tableName,
long sizeLimit,
SpaceViolationPolicy violationPolicy)
Creates a
QuotaSettings object to limit the FileSystem space usage for the given table
to the given size in bytes. |
Constructor and Description |
---|
SpaceLimitSettings(String namespace,
long sizeLimit,
SpaceViolationPolicy violationPolicy) |
SpaceLimitSettings(TableName tableName,
long sizeLimit,
SpaceViolationPolicy violationPolicy) |
SpaceQuotaStatus(SpaceViolationPolicy policy)
Constructs a
SpaceQuotaSnapshot which is in violation of the provided policy . |
SpaceQuotaStatus(SpaceViolationPolicy policy,
boolean inViolation) |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.