@InterfaceAudience.Private public class GlobalQuotaSettingsImpl extends GlobalQuotaSettings
GlobalQuotaSettings
to hide the Protobuf messages we use internally.Modifier and Type | Field and Description |
---|---|
private Boolean |
bypassGlobals |
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota |
spaceProto |
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle |
throttleProto |
Modifier | Constructor and Description |
---|---|
protected |
GlobalQuotaSettingsImpl(String username,
TableName tableName,
String namespace,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) |
protected |
GlobalQuotaSettingsImpl(String userName,
TableName tableName,
String namespace,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle throttleProto,
Boolean bypassGlobals,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceProto) |
Modifier and Type | Method and Description |
---|---|
private Map<ThrottleType,org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota> |
buildThrottleQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle proto) |
protected Boolean |
getBypassGlobals() |
List<QuotaSettings> |
getQuotaSettings()
Computes a list of QuotaSettings that present the complete quota state of the combination of
this user, table, and/or namespace.
|
protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota |
getSpaceProto() |
protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle |
getThrottleProto() |
protected GlobalQuotaSettingsImpl |
merge(QuotaSettings other)
Merges the provided settings with
this and returns a new settings
object to the caller if the merged settings differ from the original. |
protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
toQuotas()
Constructs a new
QuotaProtos.Quotas message from this . |
String |
toString() |
private void |
validateTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota) |
getQuotaType, setupSetQuotaRequest
buildFromProto, buildSetQuotaRequestProto, getNamespace, getTableName, getUserName, ownerToString, sizeToString, timeToString, validateQuotaTarget
private final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle throttleProto
private final Boolean bypassGlobals
private final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceProto
protected GlobalQuotaSettingsImpl(String username, TableName tableName, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
protected GlobalQuotaSettingsImpl(String userName, TableName tableName, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle throttleProto, Boolean bypassGlobals, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceProto)
public List<QuotaSettings> getQuotaSettings()
GlobalQuotaSettings
getQuotaSettings
in class GlobalQuotaSettings
protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getThrottleProto()
protected Boolean getBypassGlobals()
protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota getSpaceProto()
protected org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas toQuotas()
QuotaProtos.Quotas
message from this
.protected GlobalQuotaSettingsImpl merge(QuotaSettings other) throws IOException
QuotaSettings
this
and returns a new settings
object to the caller if the merged settings differ from the original.merge
in class QuotaSettings
other
- The new settings to merge in.QuotaSettings
object or null if the quota should be deleted.IOException
private void validateTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota) throws IOException
IOException
private Map<ThrottleType,org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota> buildThrottleQuotas(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle proto)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.