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,
StatsTrack quota)
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, StatsTrack quota) throws KeeperException, InterruptedException, MalformedPathException
zk
- the zookeeper clientpath
- the path to delete quota forquota
- the quotas to delete (set to 1), null to delete allKeeperException
MalformedPathException
InterruptedException
Copyright © 2008–2023 The Apache Software Foundation. All rights reserved.