@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 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(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 MasterProtos.SetQuotaRequest buildSetQuotaRequestProto(QuotaSettings settings)
protected abstract void setupSetQuotaRequest(MasterProtos.SetQuotaRequest.Builder builder)
protected String ownerToString()
protected static String sizeToString(long size)