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 java.lang.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
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 java.lang.Objectexecute(ActionContext context)java.lang.StringgetFile()java.lang.StringgetMessage()intgetMessageSize()java.lang.StringgetMsgGroupID()longgetMsgTTL()intgetObjectSize()intgetTextMessageSize()booleanisNonpersistent()ProducersetFile(java.lang.String file)ProducersetMessage(java.lang.String message)ProducersetMessageSize(int messageSize)ProducersetMsgGroupID(java.lang.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, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, setHomeValues
-
-
-
-
Field Detail
-
DEMO_TEXT
public static final java.lang.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 java.lang.String getMessage()
-
setMessage
public Producer setMessage(java.lang.String message)
-
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 java.lang.String getMsgGroupID()
-
setMsgGroupID
public Producer setMsgGroupID(java.lang.String msgGroupID)
-
getFile
public java.lang.String getFile()
-
setFile
public Producer setFile(java.lang.String file)
-
execute
public java.lang.Object execute(ActionContext context) throws java.lang.Exception
- Specified by:
executein interfaceAction- Overrides:
executein classConnectionAbstract- Throws:
java.lang.Exception
-
-