public class StopGracefullyCommand extends ShutdownCommand
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
connectorName |
protected long |
pollInterval |
protected java.lang.String |
queueName |
protected long |
timeout |
helpFileDEFAULT_JMX_URLCOMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
StopGracefullyCommand()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
Handle the --all option.
|
protected void |
stopBrokers(javax.management.MBeanServerConnection jmxConnection,
java.util.Collection brokerBeans)
Stops the list of brokers.
|
printHelp, runTaskcloseJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrlparseOptions, setCommandContextprotected java.lang.String connectorName
protected java.lang.String queueName
protected long timeout
protected long pollInterval
public StopGracefullyCommand()
protected void stopBrokers(javax.management.MBeanServerConnection jmxConnection, java.util.Collection brokerBeans) throws java.lang.Exception
stopBrokers in class ShutdownCommandjmxConnection - - 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
ShutdownCommandhandleOption in class ShutdownCommandtoken - - option token to handletokens - - succeeding command argumentsjava.lang.ExceptionCopyright © 2005-2012. All Rights Reserved.