Package org.apache.hadoop.hbase.quotas
Class RpcThrottleStorage
java.lang.Object
org.apache.hadoop.hbase.quotas.RpcThrottleStorage
ZK based rpc throttle storage.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRpcThrottleStorage
(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
switchRpcThrottle
(boolean enable) Store the rpc throttle value.
-
Field Details
-
RPC_THROTTLE_ZNODE
- See Also:
-
RPC_THROTTLE_ZNODE_DEFAULT
- See Also:
-
zookeeper
-
rpcThrottleZNode
-
-
Constructor Details
-
RpcThrottleStorage
-
-
Method Details
-
isRpcThrottleEnabled
- Throws:
IOException
-
switchRpcThrottle
Store the rpc throttle value.- Parameters:
enable
- Set totrue
to enable,false
to disable.- Throws:
IOException
- if an unexpected io exception occurs
-