@InterfaceAudience.Public public abstract class QuotaSettings extends Object
限定符 | 构造器和说明 |
---|---|
protected |
QuotaSettings(String userName,
TableName tableName,
String namespace,
String regionServer) |
限定符和类型 | 方法和说明 |
---|---|
static QuotaSettings |
buildFromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest request)
Converts the protocol buffer request into a QuotaSetting POJO.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest |
buildSetQuotaRequestProto(QuotaSettings settings)
Convert a QuotaSettings to a protocol buffer SetQuotaRequest.
|
String |
getNamespace() |
abstract QuotaType |
getQuotaType() |
String |
getRegionServer() |
TableName |
getTableName() |
String |
getUserName() |
protected String |
ownerToString() |
protected abstract 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.
|
protected static String |
sizeToString(long size) |
protected static String |
timeToString(TimeUnit timeUnit) |
public abstract QuotaType getQuotaType()
public String getUserName()
public TableName getTableName()
public String getNamespace()
public String getRegionServer()
@InterfaceAudience.Private public static QuotaSettings buildFromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest request)
request
- The protocol buffer request.QuotaSettings
POJO.@InterfaceAudience.Private public static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest buildSetQuotaRequestProto(QuotaSettings settings)
@InterfaceAudience.Private protected abstract void setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
protected String ownerToString()
protected static String sizeToString(long size)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.