public class Commands extends Object
Command
,
JettyAdminServer
Modifier and Type | Class and Description |
---|---|
static class |
Commands.CnxnStatResetCommand
Reset all connection statistics.
|
static class |
Commands.ConfCommand
Server configuration parameters.
|
static class |
Commands.ConsCommand
Information on client connections to server.
|
static class |
Commands.DirsCommand
Information on ZK datadir and snapdir size in bytes
|
static class |
Commands.DumpCommand
Information on session expirations and ephemerals.
|
static class |
Commands.EnvCommand
All defined environment variables.
|
static class |
Commands.GetTraceMaskCommand
The current trace mask.
|
static class |
Commands.IsroCommand
Is this server in read-only mode.
|
static class |
Commands.MonitorCommand
Some useful info for monitoring.
|
static class |
Commands.RuokCommand
No-op command, check if the server is running
|
static class |
Commands.SetTraceMaskCommand
Sets the trace mask.
|
static class |
Commands.SrvrCommand
Server information.
|
static class |
Commands.StatCommand
Same as SrvrCommand but has extra "connections" entry.
|
static class |
Commands.StatResetCommand
Resets server statistics.
|
static class |
Commands.WatchCommand
Watch information aggregated by session.
|
static class |
Commands.WatchesByPathCommand
Watch information aggregated by path.
|
static class |
Commands.WatchSummaryCommand
Summarized watch information.
|
Modifier and Type | Method and Description |
---|---|
static Command |
getCommand(String cmdName)
Returns the commands registered under cmdName with registerCommand, or
null if no command is registered with that name.
|
static Set<String> |
getPrimaryNames()
Returns the primary names of all registered commands.
|
static void |
registerCommand(Command command)
Registers the given command.
|
static CommandResponse |
runCommand(String cmdName,
ZooKeeperServer zkServer,
Map<String,String> kwargs)
Run the registered command with name cmdName.
|
public static void registerCommand(Command command)
public static CommandResponse runCommand(String cmdName, ZooKeeperServer zkServer, Map<String,String> kwargs)
cmdName
- zkServer
- kwargs
- String-valued keyword arguments to the command
(may be null if command requires no additional arguments)public static Set<String> getPrimaryNames()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.