@InterfaceAudience.Private @InterfaceStability.Evolving public class ThrottleSettings extends QuotaSettings
限定符和类型 | 方法和说明 |
---|---|
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
在类中 QuotaSettings
protected void setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
QuotaSettings
setupSetQuotaRequest
在类中 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–2019 The Apache Software Foundation. All rights reserved.