public class ShutdownCommand extends AbstractJmxCommand
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
helpFile |
DEFAULT_JMX_URLCOMMAND_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, useJmxServiceUrlparseOptions, printHelpFromFile, setCommandContextpublic ShutdownCommand()
public String getOneLineDescription()
protected void runTask(List brokerNames) throws Exception
runTask in class AbstractCommandbrokerNames - - names of brokers to shutdownExceptionprotected void stopBrokers(MBeanServerConnection jmxConnection, Collection brokerBeans) throws Exception
jmxConnection - - connection to the mbean serverbrokerBeans - - broker mbeans to stop @throws ExceptionExceptionprotected void handleOption(String token, List<String> tokens) throws Exception
handleOption in class AbstractJmxCommandtoken - - option token to handletokens - - succeeding command argumentsExceptionprotected void printHelp()
printHelp in class AbstractCommandCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.