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 |
|---|---|
String |
getName() |
String |
getOneLineDescription() |
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, printHelpFromFile, setCommandContextprotected String connectorName
protected long timeout
protected long pollInterval
public StopGracefullyCommand()
public String getName()
getName in interface CommandgetName in class ShutdownCommandpublic String getOneLineDescription()
getOneLineDescription in interface CommandgetOneLineDescription in class ShutdownCommandprotected 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–2016 FuseSource, Corp.. All rights reserved.