org.apache.activemq.console.command
Class StopGracefullyCommand

java.lang.Object
  extended by org.apache.activemq.console.command.AbstractCommand
      extended by org.apache.activemq.console.command.AbstractJmxCommand
          extended by org.apache.activemq.console.command.ShutdownCommand
              extended by org.apache.activemq.console.command.StopGracefullyCommand
All Implemented Interfaces:
Command

public class StopGracefullyCommand
extends ShutdownCommand

A StopGracefullyCommand


Field Summary
protected  java.lang.String connectorName
           
protected  long pollInterval
           
protected  java.lang.String queueName
           
protected  long timeout
           
 
Fields inherited from class org.apache.activemq.console.command.ShutdownCommand
helpFile
 
Fields inherited from class org.apache.activemq.console.command.AbstractJmxCommand
DEFAULT_JMX_URL
 
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context
 
Constructor Summary
StopGracefullyCommand()
          Constructor
 
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.ShutdownCommand
printHelp, runTask
 
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 org.apache.activemq.console.command.AbstractCommand
parseOptions, setCommandContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectorName

protected java.lang.String connectorName

queueName

protected java.lang.String queueName

timeout

protected long timeout

pollInterval

protected long pollInterval
Constructor Detail

StopGracefullyCommand

public StopGracefullyCommand()
Constructor

Method Detail

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 server
brokerBeans - - 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 handle
tokens - - succeeding command arguments
Throws:
java.lang.Exception


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.