public class SetQuotaCommand extends CliCommand
err, out, zk| Constructor and Description |
|---|
SetQuotaCommand() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
createQuota(ZooKeeper zk,
String path,
StatsTrack quota)
this method creates a quota node for the path
|
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 createQuota(ZooKeeper zk, String path, StatsTrack quota) throws KeeperException, InterruptedException, MalformedPathException
zk - the ZooKeeper clientpath - the path for which quota needs to be createdquota - the quotasKeeperExceptionInterruptedExceptionMalformedPathExceptionCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.