Class Producer
- java.lang.Object
-
- org.apache.activemq.artemis.cli.commands.ActionAbstract
-
- org.apache.activemq.artemis.cli.commands.InputAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.DestAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.Producer
-
- All Implemented Interfaces:
Action
@Command(name="producer", description="It will send messages to an instance") public class Producer extends DestAbstract
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEMO_TEXT-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
acceptor, brokerURL, clientID, password, protocol, user
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
context, DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description Producer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(ActionContext context)StringgetFile()StringgetMessage()intgetMessageSize()StringgetMsgGroupID()longgetMsgTTL()intgetObjectSize()intgetTextMessageSize()booleanisNonpersistent()ProducersetFile(String file)ProducersetMessage(String message)ProducersetMessageSize(int messageSize)ProducersetMsgGroupID(String msgGroupID)ProducersetMsgTTL(long msgTTL)ProducersetNonpersistent(boolean nonpersistent)ProducersetObjectSize(int objectSize)ProducersetTextMessageSize(int textMessageSize)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.DestAbstract
getDestination, getDestination, getDestination, getMessageCount, getMessageSerializer, getSerializer, getSleep, getThreads, getTxBatchSize, setDestination, setMessageCount, setSerializer, setSleep, setThreads, setTxBatchSize, stripPrefix
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
createConnectionFactory, createConnectionFactory, createCoreConnectionFactory, createCoreConnectionFactory, getAcceptor, getBrokerURL, getClientID, getPassword, getProtocol, getUser, setAcceptor, setBrokerURL, setClientID, setPassword, setProtocol, setUser
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInput
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
checkOptions, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, setHomeValues
-
-
-
-
Field Detail
-
DEMO_TEXT
public static final String DEMO_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isNonpersistent
public boolean isNonpersistent()
-
setNonpersistent
public Producer setNonpersistent(boolean nonpersistent)
-
getMessageSize
public int getMessageSize()
-
setMessageSize
public Producer setMessageSize(int messageSize)
-
getMessage
public String getMessage()
-
getTextMessageSize
public int getTextMessageSize()
-
setTextMessageSize
public Producer setTextMessageSize(int textMessageSize)
-
getObjectSize
public int getObjectSize()
-
setObjectSize
public Producer setObjectSize(int objectSize)
-
getMsgTTL
public long getMsgTTL()
-
setMsgTTL
public Producer setMsgTTL(long msgTTL)
-
getMsgGroupID
public String getMsgGroupID()
-
getFile
public String getFile()
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classConnectionAbstract- Throws:
Exception
-
-