Package org.apache.zookeeper.cli
Class DelQuotaCommand
- java.lang.Object
-
- org.apache.zookeeper.cli.CliCommand
-
- org.apache.zookeeper.cli.DelQuotaCommand
-
public class DelQuotaCommand extends CliCommand
delQuota command for cli
-
-
Field Summary
-
Fields inherited from class org.apache.zookeeper.cli.CliCommand
err, out, zk
-
-
Constructor Summary
Constructors Constructor Description DelQuotaCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
delQuota(ZooKeeper zk, java.lang.String path, boolean bytes, boolean numNodes)
this method deletes quota for a node.boolean
exec()
CliCommand
parse(java.lang.String[] cmdArgs)
parse the command arguments-
Methods inherited from class org.apache.zookeeper.cli.CliCommand
addToMap, getCmdStr, getOptionStr, getUsageStr, setErr, setOut, setZk
-
-
-
-
Method Detail
-
parse
public CliCommand parse(java.lang.String[] cmdArgs) throws CliParseException
Description copied from class:CliCommand
parse the command arguments- Specified by:
parse
in classCliCommand
- Returns:
- this CliCommand
- Throws:
CliParseException
-
exec
public boolean exec() throws CliException
- Specified by:
exec
in classCliCommand
- Returns:
- Throws:
CliException
-
delQuota
public static boolean delQuota(ZooKeeper zk, java.lang.String path, boolean bytes, boolean numNodes) throws KeeperException, java.io.IOException, java.lang.InterruptedException, MalformedPathException
this method deletes quota for a node.- Parameters:
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 unset- Returns:
- true if quota deletion is successful
- Throws:
KeeperException
java.io.IOException
java.lang.InterruptedException
MalformedPathException
-
-