@InterfaceAudience.Private public class RpcThrottleStorage extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | RPC_THROTTLE_ZNODE | 
| static String | RPC_THROTTLE_ZNODE_DEFAULT | 
| private String | rpcThrottleZNode | 
| private ZKWatcher | zookeeper | 
| Constructor and Description | 
|---|
| RpcThrottleStorage(ZKWatcher zookeeper,
                  org.apache.hadoop.conf.Configuration conf) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isRpcThrottleEnabled() | 
| void | switchRpcThrottle(boolean enable)Store the rpc throttle value. | 
public static final String RPC_THROTTLE_ZNODE
public static final String RPC_THROTTLE_ZNODE_DEFAULT
private final String rpcThrottleZNode
public RpcThrottleStorage(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf)
public boolean isRpcThrottleEnabled() throws IOException
IOExceptionpublic void switchRpcThrottle(boolean enable) throws IOException
enable - Set to true to enable, false to disable.IOException - if an unexpected io exception occursCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.