Class ConsumerCommand
java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.ConsumerCommand
- 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 TypeMethodDescriptionintintintgetName()intintgetSleep()getUser()booleanbooleanbooleanprotected voidPrint the help messages for the specific taskprotected voidRun the specific task.voidsetAckMode(String ackMode) voidsetBatchSize(int batchSize) voidsetBrokerUrl(String brokerUrl) voidsetBytesAsText(boolean bytesAsText) voidsetClientId(String clientId) voidsetDestination(String destination) voidsetDurable(boolean durable) voidsetMessageCount(int messageCount) voidsetParallelThreads(int parallelThreads) voidsetPassword(String password) voidsetSleep(int sleep) voidsetTransacted(boolean transacted) voidMethods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, handleException, handleOption, parseOptions, printHelpFromFile, setCommandContext
-
Constructor Details
-
ConsumerCommand
public ConsumerCommand()
-
-
Method Details
-
runTask
Description copied from class:AbstractCommandRun the specific task.- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
getBrokerUrl
-
setBrokerUrl
-
getUser
-
setUser
-
getPassword
-
setPassword
-
getDestination
-
setDestination
-
getMessageCount
public int getMessageCount() -
setMessageCount
public void setMessageCount(int messageCount) -
getSleep
public int getSleep() -
setSleep
public void setSleep(int sleep) -
getBatchSize
public int getBatchSize() -
setBatchSize
public void setBatchSize(int batchSize) -
getParallelThreads
public int getParallelThreads() -
setParallelThreads
public void setParallelThreads(int parallelThreads) -
isBytesAsText
public boolean isBytesAsText() -
setBytesAsText
public void setBytesAsText(boolean bytesAsText) -
isTransacted
public boolean isTransacted() -
setTransacted
public void setTransacted(boolean transacted) -
getAckMode
public int getAckMode() -
setAckMode
-
isDurable
public boolean isDurable() -
setDurable
public void setDurable(boolean durable) -
getClientId
-
setClientId
-
printHelp
protected void printHelp()Description copied from class:AbstractCommandPrint the help messages for the specific task- Specified by:
printHelpin classAbstractCommand
-
getName
-
getOneLineDescription
-