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
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 String connectorName
queueName
protected String queueName
timeout
protected long timeout
pollInterval
protected long pollInterval
StopGracefullyCommand
public StopGracefullyCommand()
- Constructor
stopBrokers
protected void stopBrokers(MBeanServerConnection jmxConnection,
Collection brokerBeans)
throws 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:
Exception
handleOption
protected void handleOption(String token,
List<String> tokens)
throws 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:
Exception
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.