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, setZk
public CliCommand parse(String[] cmdArgs) throws CliParseException
CliCommand
parse
in class CliCommand
CliParseException
public boolean exec() throws CliException
exec
in class CliCommand
CliException
public 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 unsetKeeperException
IOException
InterruptedException
MalformedPathException
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.