|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.AbstractAmqCommand
public abstract class AbstractAmqCommand
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.console.command.AbstractCommand |
|---|
COMMAND_OPTION_DELIMETER, context |
| Constructor Summary | |
|---|---|
AbstractAmqCommand()
|
|
| Method Summary | |
|---|---|
protected void |
closeAllConnections()
Close all created connections. |
protected javax.jms.Connection |
createConnection()
Establishes a connection to the remote broker specified by the broker url. |
protected javax.jms.Connection |
createConnection(String username,
String password)
Establishes a connection to the remote broker specified by the broker url. |
protected URI |
getBrokerUrl()
Get the current broker url. |
protected void |
handleOption(String token,
List tokens)
Handle the --amqurl option. |
protected void |
setBrokerUrl(String address)
Set the broker url. |
protected void |
setBrokerUrl(URI brokerUrl)
Set the broker url. |
| Methods inherited from class org.apache.activemq.console.command.AbstractCommand |
|---|
execute, parseOptions, printHelp, runTask, setCommandContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAmqCommand()
| Method Detail |
|---|
protected javax.jms.Connection createConnection()
throws javax.jms.JMSException
javax.jms.JMSException
protected javax.jms.Connection createConnection(String username,
String password)
throws javax.jms.JMSException
username - - username for the connectionpassword - - password for the connection
javax.jms.JMSExceptionprotected void closeAllConnections()
protected void handleOption(String token,
List tokens)
throws Exception
handleOption in class AbstractCommandtoken - - current optiontokens - - succeeding list of arguments
Exceptionprotected void setBrokerUrl(URI brokerUrl)
brokerUrl - - new broker url
protected void setBrokerUrl(String address)
throws URISyntaxException
address - - address of the new broker url
URISyntaxExceptionprotected URI getBrokerUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||