public class ShutdownCommand extends AbstractJmxCommand
Modifier and Type | Field and Description |
---|---|
protected String[] |
helpFile |
DEFAULT_JMX_URL
COMMAND_OPTION_DELIMETER, context
Constructor and Description |
---|
ShutdownCommand() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getOneLineDescription() |
protected void |
handleOption(String token,
List<String> tokens)
Handle the --all option.
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(List brokerNames)
Shuts down the specified broker or brokers
|
protected void |
stopBrokers(MBeanServerConnection jmxConnection,
Collection brokerBeans)
Stops the list of brokers.
|
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrl
parseOptions, printHelpFromFile, setCommandContext
public ShutdownCommand()
public String getOneLineDescription()
protected void runTask(List brokerNames) throws Exception
runTask
in class AbstractCommand
brokerNames
- - names of brokers to shutdownException
protected void stopBrokers(MBeanServerConnection jmxConnection, Collection brokerBeans) throws Exception
jmxConnection
- - connection to the mbean serverbrokerBeans
- - broker mbeans to stop @throws ExceptionException
protected void handleOption(String token, List<String> tokens) throws Exception
handleOption
in class AbstractJmxCommand
token
- - option token to handletokens
- - succeeding command argumentsException
protected void printHelp()
printHelp
in class AbstractCommand
Copyright © 2005–2018 FuseSource, Corp.. All rights reserved.