| Package | Description |
|---|---|
| org.apache.hadoop.hbase.protobuf |
Holds classes generated from protobuf
src/main/protobuf definition files. |
| org.apache.hadoop.hbase.quotas |
| Modifier and Type | Method and Description |
|---|---|
static SpaceViolationPolicy |
ProtobufUtil.toViolationPolicy(QuotaProtos.SpaceViolationPolicy proto)
Converts a protocol buffer SpaceViolationPolicy to a client SpaceViolationPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
static QuotaProtos.SpaceQuota |
ProtobufUtil.toProtoSpaceQuota(long limit,
SpaceViolationPolicy violationPolicy)
Builds a protocol buffer SpaceQuota.
|
static QuotaProtos.SpaceViolationPolicy |
ProtobufUtil.toProtoViolationPolicy(SpaceViolationPolicy policy)
Converts a client SpaceViolationPolicy to a protocol buffer SpaceViolationPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
SpaceViolationPolicy |
SpaceQuotaSnapshot.SpaceQuotaStatus.getPolicy()
The violation policy which may be null.
|
protected static SpaceViolationPolicy |
QuotaTableUtil.getViolationPolicy(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 |
|---|---|
static Map<TableName,SpaceViolationPolicy> |
QuotaTableUtil.getRegionServerQuotaViolations(Connection conn,
ServerName regionServer)
Fetches the active
SpaceViolationPolicy's that are being enforced on the
given RegionServer. |
| Modifier and Type | Method and Description |
|---|---|
protected static QuotaProtos.SpaceQuota |
QuotaTableUtil.getProtoViolationPolicy(SpaceViolationPolicy policy) |
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 |
|---|
SpaceQuotaStatus(SpaceViolationPolicy policy) |