| Constructor and Description |
|---|
CommandCenter(CommandOutput output,
CommandInput input)
Constructor with given output
PrintWriter |
CommandCenter(CommandOutput output,
CommandInput input,
CommandFactory commandFactory)
This constructor is for testing purpose only
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close session
|
void |
connect(JMXServiceURL url,
Map<String,Object> env) |
boolean |
execute(String command)
Execute a command.
|
Set<String> |
getCommandNames() |
Class<? extends Command> |
getCommandType(String name) |
JavaProcessManager |
getProcessManager() |
boolean |
isClosed() |
void |
setVerboseLevel(VerboseLevel verboseLevel) |
public CommandCenter(CommandOutput output, CommandInput input) throws IOException
PrintWriteroutput - Message output. It can't be NULLinput - Command line inputIOException - Thrown for file access failurepublic CommandCenter(CommandOutput output, CommandInput input, CommandFactory commandFactory) throws IOException
output - Output resultinput - Command inputcommandFactory - Given command factoryIOException - IO problempublic void close()
public void connect(JMXServiceURL url, Map<String,Object> env) throws IOException
url - MBeanServer location. It can be AAA:### or full JMX server URLenv - Environment variablesIOException - Thrown when connection can't be establishedpublic boolean execute(String command)
command - String command to executepublic Class<? extends Command> getCommandType(String name)
name - Command namepublic final JavaProcessManager getProcessManager()
public boolean isClosed()
public void setVerboseLevel(VerboseLevel verboseLevel)
verboseLevel - New verbose level valueCopyright © 2008–2019. All rights reserved.