public class StopGracefullyCommand extends ShutdownCommand
Modifier and Type | Field and Description |
---|---|
protected String |
connectorName |
protected long |
pollInterval |
protected String |
queueName |
protected long |
timeout |
helpFile
DEFAULT_JMX_URL
COMMAND_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, runTask
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrl
handleException, parseOptions, printHelpFromFile, setCommandContext
protected String connectorName
protected long timeout
protected long pollInterval
public StopGracefullyCommand()
public String getName()
getName
in interface Command
getName
in class ShutdownCommand
public String getOneLineDescription()
getOneLineDescription
in interface Command
getOneLineDescription
in class ShutdownCommand
protected void stopBrokers(MBeanServerConnection jmxConnection, Collection brokerBeans) throws Exception
stopBrokers
in class ShutdownCommand
jmxConnection
- - connection to the mbean serverbrokerBeans
- - broker mbeans to stop @throws ExceptionException
protected void handleOption(String token, List<String> tokens) throws Exception
ShutdownCommand
handleOption
in class ShutdownCommand
token
- - option token to handletokens
- - succeeding command argumentsException
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.