public class ShutdownCommand extends AbstractJmxCommand
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
helpFile |
DEFAULT_JMX_URLCOMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
ShutdownCommand() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.lang.String |
getOneLineDescription() |
protected void |
handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
Handle the --all option.
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(java.util.List brokerNames)
Shuts down the specified broker or brokers
|
protected void |
stopBrokers(javax.management.MBeanServerConnection jmxConnection,
java.util.Collection brokerBeans)
Stops the list of brokers.
|
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrlparseOptions, setCommandContextpublic java.lang.String getName()
public java.lang.String getOneLineDescription()
protected void runTask(java.util.List brokerNames)
throws java.lang.Exception
runTask in class AbstractCommandbrokerNames - - names of brokers to shutdownjava.lang.Exceptionprotected void stopBrokers(javax.management.MBeanServerConnection jmxConnection,
java.util.Collection brokerBeans)
throws java.lang.Exception
jmxConnection - - connection to the mbean serverbrokerBeans - - broker mbeans to stop @throws Exceptionjava.lang.Exceptionprotected void handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
throws java.lang.Exception
handleOption in class AbstractJmxCommandtoken - - option token to handletokens - - succeeding command argumentsjava.lang.Exceptionprotected void printHelp()
printHelp in class AbstractCommandCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.