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 String DEFAULT_CONFIG_URI
           
protected  String[] helpFile
           
 
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context
 
Constructor Summary
StartCommand()
           
 
Method Summary
 URI getConfigUri()
          Gets the current configuration URI used by the start task
 String getName()
           
 String getOneLineDescription()
           
protected  void printHelp()
          Print the help messages for the browse command
protected  void runTask(List<String> brokerURIs)
          The default task to start a broker or a group of brokers
 void setConfigUri(URI uri)
          Sets the current configuration URI used by the start task
 void startBroker(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, setCommandContext
 
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 String DEFAULT_CONFIG_URI
See Also:
Constant Field Values

helpFile

protected String[] helpFile
Constructor Detail

StartCommand

public StartCommand()
Method Detail

getName

public String getName()

getOneLineDescription

public String getOneLineDescription()

runTask

protected void runTask(List<String> brokerURIs)
                throws Exception
The default task to start a broker or a group of brokers

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

startBroker

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

Parameters:
configURI -
Throws:
Exception

waitForShutdown

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

Throws:
Exception

setConfigUri

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

Parameters:
uri -

getConfigUri

public 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 © 2005-2013 The Apache Software Foundation. All Rights Reserved.