Class ConsumerCommand
- java.lang.Object
-
- org.apache.activemq.console.command.AbstractCommand
-
- org.apache.activemq.console.command.ConsumerCommand
-
- All Implemented Interfaces:
Command
public class ConsumerCommand extends AbstractCommand
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context
-
-
Constructor Summary
Constructors Constructor Description ConsumerCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAckMode()intgetBatchSize()StringgetBrokerUrl()StringgetClientId()StringgetDestination()intgetMessageCount()StringgetName()StringgetOneLineDescription()intgetParallelThreads()StringgetPassword()intgetSleep()StringgetUser()booleanisBytesAsText()booleanisDurable()booleanisTransacted()protected voidprintHelp()Print the help messages for the specific taskprotected voidrunTask(List<String> tokens)Run 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)voidsetUser(String user)-
Methods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, handleException, handleOption, parseOptions, printHelpFromFile, setCommandContext
-
-
-
-
Method Detail
-
runTask
protected void runTask(List<String> tokens) throws Exception
Description copied from class:AbstractCommandRun the specific task.- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
getBrokerUrl
public String getBrokerUrl()
-
setBrokerUrl
public void setBrokerUrl(String brokerUrl)
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getDestination
public String getDestination()
-
setDestination
public void setDestination(String destination)
-
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
public void setAckMode(String ackMode)
-
isDurable
public boolean isDurable()
-
setDurable
public void setDurable(boolean durable)
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
printHelp
protected void printHelp()
Description copied from class:AbstractCommandPrint the help messages for the specific task- Specified by:
printHelpin classAbstractCommand
-
getName
public String getName()
-
getOneLineDescription
public String getOneLineDescription()
-
-