/** * Remove the throttling for the specified user on the specified table. * * @param userName the user * @param tableName the table * @return the quota settings */ public static QuotaSettings unthrottleUser(final String userName, final TableName tableName) { return throttle(userName, tableName, null, null, null, 0, null); }
/** * Remove the throttling for the specified user on the specified namespace. * * @param userName the user * @param namespace the namespace * @return the quota settings */ public static QuotaSettings unthrottleUser(final String userName, final String namespace) { return throttle(userName, null, namespace, null, null, 0, null); }
/** * Remove the throttling for the specified region server. * * @param regionServer the region Server * @return the quota settings */ public static QuotaSettings unthrottleRegionServer(final String regionServer) { return throttle(null, null, null, regionServer, null, 0, null); }
/** * Remove the throttling for the specified user. * * @param userName the user * @return the quota settings */ public static QuotaSettings unthrottleUser(final String userName) { return throttle(userName, null, null, null, null, 0, null); }
/** * Remove the throttling for the specified table. * * @param tableName the table * @return the quota settings */ public static QuotaSettings unthrottleTable(final TableName tableName) { return throttle(null, tableName, null, null, null, 0, null); }
/** * Remove the throttling for the specified namespace. * * @param namespace the namespace * @return the quota settings */ public static QuotaSettings unthrottleNamespace(final String namespace) { return throttle(null, null, namespace, null, null, 0, null); }
/** * Throttle the specified table. * * @param tableName the table to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleTable(final TableName tableName, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(null, tableName, null, null, type, limit, timeUnit); }
/** * Throttle the specified user. * * @param userName the user to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleUser(final String userName, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(userName, null, null, null, type, limit, timeUnit); }
/** * Throttle the specified namespace. * * @param namespace the namespace to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleNamespace(final String namespace, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(null, null, namespace, null, type, limit, timeUnit); }
/** * Throttle the specified region server. * * @param regionServer the region server to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleRegionServer(final String regionServer, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(null, null, null, regionServer, type, limit, timeUnit); }
/** * Throttle the specified user on the specified namespace. * * @param userName the user to throttle * @param namespace the namespace to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleUser(final String userName, final String namespace, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(userName, null, namespace, null, type, limit, timeUnit); }
/** * Throttle the specified user on the specified table. * * @param userName the user to throttle * @param tableName the table to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleUser(final String userName, final TableName tableName, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(userName, tableName, null, null, type, limit, timeUnit); }
/** * Remove the throttling for the specified user. * * @param userName the user * @return the quota settings */ public static QuotaSettings unthrottleUser(final String userName) { return throttle(userName, null, null, null, 0, null); }
/** * Throttle the specified user. * * @param userName the user to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleUser(final String userName, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(userName, null, null, type, limit, timeUnit); }
/** * Remove the throttling for the specified user on the specified namespace. * * @param userName the user * @param namespace the namespace * @return the quota settings */ public static QuotaSettings unthrottleUser(final String userName, final String namespace) { return throttle(userName, null, namespace, null, 0, null); }
/** * Remove the throttling for the specified table. * * @param tableName the table * @return the quota settings */ public static QuotaSettings unthrottleTable(final TableName tableName) { return throttle(null, tableName, null, null, 0, null); }
/** * Remove the throttling for the specified namespace. * * @param namespace the namespace * @return the quota settings */ public static QuotaSettings unthrottleNamespace(final String namespace) { return throttle(null, null, namespace, null, 0, null); }
/** * Remove the throttling for the specified user on the specified table. * * @param userName the user * @param tableName the table * @return the quota settings */ public static QuotaSettings unthrottleUser(final String userName, final TableName tableName) { return throttle(userName, tableName, null, null, 0, null); }
/** * Throttle the specified table. * * @param tableName the table to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleTable(final TableName tableName, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(null, tableName, null, type, limit, timeUnit); }
/** * Throttle the specified namespace. * * @param namespace the namespace to throttle * @param type the type of throttling * @param limit the allowed number of request/data per timeUnit * @param timeUnit the limit time unit * @return the quota settings */ public static QuotaSettings throttleNamespace(final String namespace, final ThrottleType type, final long limit, final TimeUnit timeUnit) { return throttle(null, null, namespace, type, limit, timeUnit); }