Class ProducerCommand
java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.ProducerCommand
- All Implemented Interfaces:
Command
-
Field Summary
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintlonggetName()intintgetSleep()intintgetUser()booleanprotected voidPrint the help messages for the specific taskprotected voidRun the specific task.voidsetBrokerUrl(String brokerUrl) voidsetDestination(String destination) voidsetMessage(String message) voidsetMessageCount(int messageCount) voidsetMessageSize(int messageSize) voidsetMsgGroupID(String msgGroupID) voidsetMsgTTL(long msgTTL) voidsetParallelThreads(int parallelThreads) voidsetPassword(String password) voidsetPayloadUrl(String payloadUrl) voidsetPersistent(boolean persistent) voidsetSleep(int sleep) voidsetTextMessageSize(int textMessageSize) voidsetTransactionBatchSize(int transactionBatchSize) voidMethods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, handleException, handleOption, parseOptions, printHelpFromFile, setCommandContext
-
Constructor Details
-
ProducerCommand
public ProducerCommand()
-
-
Method Details
-
runTask
Description copied from class:AbstractCommandRun the specific task.- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
getBrokerUrl
-
setBrokerUrl
-
getDestination
-
setDestination
-
getMessageCount
public int getMessageCount() -
setMessageCount
public void setMessageCount(int messageCount) -
getSleep
public int getSleep() -
setSleep
public void setSleep(int sleep) -
isPersistent
public boolean isPersistent() -
setPersistent
public void setPersistent(boolean persistent) -
getMessageSize
public int getMessageSize() -
setMessageSize
public void setMessageSize(int messageSize) -
getTextMessageSize
public int getTextMessageSize() -
setTextMessageSize
public void setTextMessageSize(int textMessageSize) -
getMsgTTL
public long getMsgTTL() -
setMsgTTL
public void setMsgTTL(long msgTTL) -
getMsgGroupID
-
setMsgGroupID
-
getTransactionBatchSize
public int getTransactionBatchSize() -
setTransactionBatchSize
public void setTransactionBatchSize(int transactionBatchSize) -
getUser
-
setUser
-
getPassword
-
setPassword
-
getParallelThreads
public int getParallelThreads() -
setParallelThreads
public void setParallelThreads(int parallelThreads) -
getPayloadUrl
-
setPayloadUrl
-
getMessage
-
setMessage
-
printHelp
protected void printHelp()Description copied from class:AbstractCommandPrint the help messages for the specific task- Specified by:
printHelpin classAbstractCommand
-
getName
-
getOneLineDescription
-