@InterfaceAudience.Private @InterfaceStability.Evolving public class ThrottleSettings extends QuotaSettings
Modifier and Type | Method and Description |
---|---|
QuotaScope |
getQuotaScope() |
QuotaType |
getQuotaType() |
long |
getSoftLimit() |
ThrottleType |
getThrottleType() |
TimeUnit |
getTimeUnit() |
protected ThrottleSettings |
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 void |
setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
Called by toSetQuotaRequestProto() the subclass should implement this method to set the
specific SetQuotaRequest properties.
|
String |
toString() |
buildFromProto, buildSetQuotaRequestProto, getNamespace, getRegionServer, getTableName, getUserName, ownerToString, sizeToString, timeToString
public ThrottleType getThrottleType()
public long getSoftLimit()
public TimeUnit getTimeUnit()
public QuotaScope getQuotaScope()
public QuotaType getQuotaType()
getQuotaType
in class QuotaSettings
protected void setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
QuotaSettings
setupSetQuotaRequest
in class QuotaSettings
protected ThrottleSettings merge(QuotaSettings other) throws IOException
QuotaSettings
this
and returns a new settings object to the caller
if the merged settings differ from the original.other
- The new settings to merge in.QuotaSettings
object or null if the quota should be deleted.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.