@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class QuotaSettings extends Object
Modifier | Constructor and Description |
---|---|
protected |
QuotaSettings(String userName,
TableName tableName,
String namespace) |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest |
buildSetQuotaRequestProto(QuotaSettings settings)
Convert a QuotaSettings to a protocol buffer SetQuotaRequest.
|
String |
getNamespace() |
abstract QuotaType |
getQuotaType() |
TableName |
getTableName() |
String |
getUserName() |
protected String |
ownerToString() |
protected abstract void |
setupSetQuotaRequest(org.apache.hadoop.hbase.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 static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest buildSetQuotaRequestProto(QuotaSettings settings)
protected abstract void setupSetQuotaRequest(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder)
protected String ownerToString()
protected static String sizeToString(long size)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.