@InterfaceAudience.Public @InterfaceStability.Evolving public class QuotaSettingsFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
QuotaSettingsFactory.QuotaGlobalsSettingsBypass |
| Modifier | Constructor and Description |
|---|---|
private |
QuotaSettingsFactory() |
| Modifier and Type | Method and Description |
|---|---|
static QuotaSettings |
bypassGlobals(String userName,
boolean bypassGlobals)
Set the "bypass global settings" for the specified user
|
(package private) static List<QuotaSettings> |
fromNamespaceQuotas(String namespace,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas) |
private static List<QuotaSettings> |
fromQuotas(String userName,
TableName tableName,
String namespace,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas) |
(package private) static List<QuotaSettings> |
fromTableQuotas(TableName tableName,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas) |
private static List<QuotaSettings> |
fromThrottle(String userName,
TableName tableName,
String namespace,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Throttle throttle) |
(package private) static List<QuotaSettings> |
fromUserQuotas(String userName,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas) |
(package private) static List<QuotaSettings> |
fromUserQuotas(String userName,
String namespace,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas) |
(package private) static List<QuotaSettings> |
fromUserQuotas(String userName,
TableName tableName,
org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas) |
private static QuotaSettings |
throttle(String userName,
TableName tableName,
String namespace,
ThrottleType type,
long limit,
TimeUnit timeUnit) |
static QuotaSettings |
throttleNamespace(String namespace,
ThrottleType type,
long limit,
TimeUnit timeUnit)
Throttle the specified namespace.
|
static QuotaSettings |
throttleTable(TableName tableName,
ThrottleType type,
long limit,
TimeUnit timeUnit)
Throttle the specified table.
|
static QuotaSettings |
throttleUser(String userName,
String namespace,
ThrottleType type,
long limit,
TimeUnit timeUnit)
Throttle the specified user on the specified namespace.
|
static QuotaSettings |
throttleUser(String userName,
TableName tableName,
ThrottleType type,
long limit,
TimeUnit timeUnit)
Throttle the specified user on the specified table.
|
static QuotaSettings |
throttleUser(String userName,
ThrottleType type,
long limit,
TimeUnit timeUnit)
Throttle the specified user.
|
static QuotaSettings |
unthrottleNamespace(String namespace)
Remove the throttling for the specified namespace.
|
static QuotaSettings |
unthrottleTable(TableName tableName)
Remove the throttling for the specified table.
|
static QuotaSettings |
unthrottleUser(String userName)
Remove the throttling for the specified user.
|
static QuotaSettings |
unthrottleUser(String userName,
String namespace)
Remove the throttling for the specified user on the specified namespace.
|
static QuotaSettings |
unthrottleUser(String userName,
TableName tableName)
Remove the throttling for the specified user on the specified table.
|
static List<QuotaSettings> fromUserQuotas(String userName, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas)
static List<QuotaSettings> fromUserQuotas(String userName, TableName tableName, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas)
static List<QuotaSettings> fromUserQuotas(String userName, String namespace, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas)
static List<QuotaSettings> fromTableQuotas(TableName tableName, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas)
static List<QuotaSettings> fromNamespaceQuotas(String namespace, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas)
private static List<QuotaSettings> fromQuotas(String userName, TableName tableName, String namespace, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas quotas)
private static List<QuotaSettings> fromThrottle(String userName, TableName tableName, String namespace, org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Throttle throttle)
public static QuotaSettings throttleUser(String userName, ThrottleType type, long limit, TimeUnit timeUnit)
userName - the user to throttletype - the type of throttlinglimit - the allowed number of request/data per timeUnittimeUnit - the limit time unitpublic static QuotaSettings throttleUser(String userName, TableName tableName, ThrottleType type, long limit, TimeUnit timeUnit)
userName - the user to throttletableName - the table to throttletype - the type of throttlinglimit - the allowed number of request/data per timeUnittimeUnit - the limit time unitpublic static QuotaSettings throttleUser(String userName, String namespace, ThrottleType type, long limit, TimeUnit timeUnit)
userName - the user to throttlenamespace - the namespace to throttletype - the type of throttlinglimit - the allowed number of request/data per timeUnittimeUnit - the limit time unitpublic static QuotaSettings unthrottleUser(String userName)
userName - the userpublic static QuotaSettings unthrottleUser(String userName, TableName tableName)
userName - the usertableName - the tablepublic static QuotaSettings unthrottleUser(String userName, String namespace)
userName - the usernamespace - the namespacepublic static QuotaSettings throttleTable(TableName tableName, ThrottleType type, long limit, TimeUnit timeUnit)
tableName - the table to throttletype - the type of throttlinglimit - the allowed number of request/data per timeUnittimeUnit - the limit time unitpublic static QuotaSettings unthrottleTable(TableName tableName)
tableName - the tablepublic static QuotaSettings throttleNamespace(String namespace, ThrottleType type, long limit, TimeUnit timeUnit)
namespace - the namespace to throttletype - the type of throttlinglimit - the allowed number of request/data per timeUnittimeUnit - the limit time unitpublic static QuotaSettings unthrottleNamespace(String namespace)
namespace - the namespaceprivate static QuotaSettings throttle(String userName, TableName tableName, String namespace, ThrottleType type, long limit, TimeUnit timeUnit)
public static QuotaSettings bypassGlobals(String userName, boolean bypassGlobals)
userName - the user to throttlebypassGlobals - true if the global settings should be bypassedCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.