org.apache.activemq.console.command
Class StartCommand

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

public class StartCommand
extends AbstractCommand


Field Summary
static java.lang.String DEFAULT_CONFIG_URI
           
protected  java.lang.String[] helpFile
           
 
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER
 
Constructor Summary
StartCommand()
           
 
Method Summary
 java.net.URI getConfigUri()
          Gets the current configuration URI used by the start task
protected  void printHelp()
          Print the help messages for the browse command
protected  void runTask(java.util.List brokerURIs)
          The default task to start a broker or a group of brokers
 void setConfigUri(java.net.URI uri)
          Sets the current configuration URI used by the start task
 void startBroker(java.net.URI configURI)
          Create and run a broker specified by the given configuration URI
protected  void waitForShutdown()
          Wait for a shutdown invocation elsewhere
 
Methods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, handleOption, parseOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIG_URI

public static final java.lang.String DEFAULT_CONFIG_URI
See Also:
Constant Field Values

helpFile

protected java.lang.String[] helpFile
Constructor Detail

StartCommand

public StartCommand()
Method Detail

runTask

protected void runTask(java.util.List brokerURIs)
                throws java.lang.Exception
The default task to start a broker or a group of brokers

Specified by:
runTask in class AbstractCommand
Parameters:
brokerURIs -
Throws:
java.lang.Exception

startBroker

public void startBroker(java.net.URI configURI)
                 throws java.lang.Exception
Create and run a broker specified by the given configuration URI

Parameters:
configURI -
Throws:
java.lang.Exception

waitForShutdown

protected void waitForShutdown()
                        throws java.lang.Exception
Wait for a shutdown invocation elsewhere

Throws:
java.lang.Exception

setConfigUri

public void setConfigUri(java.net.URI uri)
Sets the current configuration URI used by the start task

Parameters:
uri -

getConfigUri

public java.net.URI getConfigUri()
Gets the current configuration URI used by the start task

Returns:
current configuration URI

printHelp

protected void printHelp()
Print the help messages for the browse command

Specified by:
printHelp in class AbstractCommand


Copyright © 2009 Apache Software Foundation. All Rights Reserved.