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.ConnectionConfigurationAbtract
-
- org.apache.activemq.artemis.cli.commands.messages.BasicConnectionAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.DestAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.Producer
-
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.DestAbstract
txBatchSize
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
clientID, protocol
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionConfigurationAbtract
acceptor, brokerURL, CONNECTION_INFORMATION, password, silent, 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 Objectexecute(ActionContext context)StringgetFile()StringgetMessage()intgetMessageSize()StringgetMsgGroupID()longgetMsgTTL()intgetObjectSize()StringgetProperties()intgetTextMessageSize()booleanisNonpersistent()ProducersetFile(String file)ProducersetMessage(String message)ProducersetMessageSize(int messageSize)ProducersetMsgGroupID(String msgGroupID)ProducersetMsgTTL(long msgTTL)ProducersetNonpersistent(boolean nonpersistent)ProducersetObjectSize(int objectSize)ProducersetProperties(String properties)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, getClientID, getProtocol, setClientID, setProtocol, setProtocol
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.BasicConnectionAbstract
createConnectionFactory, performCoreManagement, performCoreManagement, tryConnect
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionConfigurationAbtract
getAcceptor, getBrokerURL, getPassword, getUser, inputBrokerURL, inputPassword, inputUser, recoverConnectionInformation, saveConnectionInfo, setAcceptor, setBrokerURL, setPassword, 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
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, 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()
-
getProperties
public String getProperties()
-
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 classDestAbstract- Throws:
Exception
-
-