Package org.apache.zookeeper.cli
Class SetAclCommand
java.lang.Object
org.apache.zookeeper.cli.CliCommand
org.apache.zookeeper.cli.SetAclCommand
setAcl command for cli.
Available options are s for printing znode's stats, v for set version of znode(s), R for
recursive setting. User can combine v and R options together, but not s and R considering the
number of znodes could be large.
-
Field Summary
Fields inherited from class org.apache.zookeeper.cli.CliCommand
err, out, zk
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.zookeeper.cli.CliCommand
addToMap, getCmdStr, getOptionStr, getUsageStr, setErr, setOut, setZk
-
Constructor Details
-
SetAclCommand
public SetAclCommand()
-
-
Method Details
-
parse
Description copied from class:CliCommand
parse the command arguments- Specified by:
parse
in classCliCommand
- Parameters:
cmdArgs
-- Returns:
- this CliCommand
- Throws:
CliParseException
-
exec
- Specified by:
exec
in classCliCommand
- Returns:
- true if command has watch option, false otherwise
- Throws:
CliException
-