Class DestAbstract
- 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
-
-
Field Summary
Fields Modifier and Type Field Description protected inttxBatchSize-
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 DestAbstract()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(ActionContext context)StringgetDestination()protected javax.jms.DestinationgetDestination(javax.jms.Session session)static javax.jms.DestinationgetDestination(javax.jms.Session session, String destination)longgetMessageCount()protected MessageSerializergetMessageSerializer()StringgetSerializer()intgetSleep()intgetThreads()intgetTxBatchSize()DestAbstractsetDestination(String destination)DestAbstractsetMessageCount(long messageCount)DestAbstractsetSerializer(String serializer)DestAbstractsetSleep(int sleep)DestAbstractsetThreads(int threads)DestAbstractsetTxBatchSize(int txBatchSize)static StringstripPrefix(String destination)-
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
-
-
-
-
Method Detail
-
getMessageSerializer
protected MessageSerializer getMessageSerializer()
-
getDestination
protected javax.jms.Destination getDestination(javax.jms.Session session) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
getDestination
public static javax.jms.Destination getDestination(javax.jms.Session session, String destination) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
getDestination
public String getDestination()
-
setDestination
public DestAbstract setDestination(String destination)
-
getMessageCount
public long getMessageCount()
-
setMessageCount
public DestAbstract setMessageCount(long messageCount)
-
getSleep
public int getSleep()
-
setSleep
public DestAbstract setSleep(int sleep)
-
getTxBatchSize
public int getTxBatchSize()
-
setTxBatchSize
public DestAbstract setTxBatchSize(int txBatchSize)
-
getThreads
public int getThreads()
-
setThreads
public DestAbstract setThreads(int threads)
-
getSerializer
public String getSerializer()
-
setSerializer
public DestAbstract setSerializer(String serializer)
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classConnectionConfigurationAbtract- Throws:
Exception
-
-