org.apache.activemq.console.command
Class StopGracefullyCommand
java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.AbstractJmxCommand
org.apache.activemq.console.command.ShutdownCommand
org.apache.activemq.console.command.StopGracefullyCommand
- All Implemented Interfaces:
- Command
public class StopGracefullyCommand
- extends ShutdownCommand
A StopGracefullyCommand
Method Summary |
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. |
Methods inherited from class org.apache.activemq.console.command.AbstractJmxCommand |
closeJmxConnection, createJmxConnection, execute, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectorName
protected java.lang.String connectorName
queueName
protected java.lang.String queueName
timeout
protected long timeout
pollInterval
protected long pollInterval
StopGracefullyCommand
public StopGracefullyCommand()
- Constructor
stopBrokers
protected void stopBrokers(javax.management.MBeanServerConnection jmxConnection,
java.util.Collection brokerBeans)
throws java.lang.Exception
- Stops the list of brokers.
- Overrides:
stopBrokers
in class ShutdownCommand
- Parameters:
jmxConnection
- - connection to the mbean serverbrokerBeans
- - broker mbeans to stop @throws Exception
- Throws:
java.lang.Exception
handleOption
protected void handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
throws java.lang.Exception
- Description copied from class:
ShutdownCommand
- Handle the --all option.
- Overrides:
handleOption
in class ShutdownCommand
- Parameters:
token
- - option token to handletokens
- - succeeding command arguments
- Throws:
java.lang.Exception
Copyright © 2005-2011. All Rights Reserved.