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.ConnectionAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.DestAbstract
-
- All Implemented Interfaces:
Action
public class DestAbstract extends ConnectionAbstract
-
-
Field Summary
-
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 DestAbstract()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDestination()protected javax.jms.DestinationgetDestination(javax.jms.Session session)static javax.jms.DestinationgetDestination(javax.jms.Session session, String destination)intgetMessageCount()protected MessageSerializergetMessageSerializer()StringgetSerializer()intgetSleep()intgetThreads()intgetTxBatchSize()DestAbstractsetDestination(String destination)DestAbstractsetMessageCount(int 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, execute, 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
-
-
-
-
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 int getMessageCount()
-
setMessageCount
public DestAbstract setMessageCount(int 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)
-
-