public class DelQuotaCommand extends CliCommand
err, out, zk| Constructor and Description |
|---|
DelQuotaCommand() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
delQuota(ZooKeeper zk,
String path,
boolean bytes,
boolean numNodes)
this method deletes quota for a node.
|
boolean |
exec() |
CliCommand |
parse(String[] cmdArgs)
parse the command arguments
|
addToMap, getCmdStr, getOptionStr, getUsageStr, setErr, setOut, setZkpublic CliCommand parse(String[] cmdArgs) throws CliParseException
CliCommandparse in class CliCommandCliParseExceptionpublic boolean exec()
throws CliException
exec in class CliCommandCliExceptionpublic static boolean delQuota(ZooKeeper zk, String path, boolean bytes, boolean numNodes) throws KeeperException, IOException, InterruptedException, MalformedPathException
zk - the zookeeper clientpath - the path to delete quota forbytes - true if number of bytes needs to be unsetnumNodes - true if number of nodes needs to be unsetKeeperExceptionIOExceptionInterruptedExceptionMalformedPathExceptionCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.