public class StopGracefullyCommand extends ShutdownCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
connectorName |
protected long |
pollInterval |
protected 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(String token,
List<String> tokens)
Handle the --all option.
|
protected void |
stopBrokers(MBeanServerConnection jmxConnection,
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 String connectorName
protected long timeout
protected long pollInterval
public StopGracefullyCommand()
protected void stopBrokers(MBeanServerConnection jmxConnection, Collection brokerBeans) throws Exception
stopBrokers in class ShutdownCommandjmxConnection - - connection to the mbean serverbrokerBeans - - broker mbeans to stop @throws ExceptionExceptionprotected void handleOption(String token, List<String> tokens) throws Exception
ShutdownCommandhandleOption in class ShutdownCommandtoken - - option token to handletokens - - succeeding command argumentsExceptionCopyright © 2005–2017. All rights reserved.