@InterfaceAudience.Public @InterfaceStability.Evolving public class QuotaSettingsFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static QuotaSettings |
bypassGlobals(String userName,
boolean bypassGlobals)
Set the "bypass global settings" for the specified user
|
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.
|
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 namespacepublic 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.