Class PerfClientCommand
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.perf.PerfCommand
org.apache.activemq.artemis.cli.commands.messages.perf.PerfClientCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected ConnectionProtocolprotected intprotected Stringprotected booleanprotected booleanprotected booleanprotected longprotected intprotected Stringprotected booleanprotected intprotected Longprotected booleanprotected intprotected intprotected booleanprotected longFields inherited from class org.apache.activemq.artemis.cli.commands.messages.perf.PerfCommand
commitInterval, destinations, duration, hdrFileName, messageCount, numDestinations, reportFileName, showLatency, txSize, warmupFields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
clientID, protocolFields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionConfigurationAbtract
acceptor, brokerURL, CONNECTION_INFORMATION, password, silent, userFields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ActionContext context) intintlongintintgetRate()intintlonggetTtl()booleanbooleanbooleanbooleanbooleanbooleanprotected voidonExecuteBenchmark(javax.jms.ConnectionFactory producerConnectionFactory, javax.jms.Destination[] jmsDestinations, ActionContext context) protected voidsetConsumerConnections(int consumerConnections) setConsumerProtocol(String consumerProtocol) setConsumersPerDestination(int consumersPerDestination) setConsumerUrl(String consumerUrl) setDurableSubscription(boolean durableSubscription) setEnableMessageID(boolean enableMessageID) setEnableTimestamp(boolean enableTimestamp) setMaxPending(long maxPending) setMessageSize(int messageSize) setMsgGroupID(String msgGroupID) setPersistent(boolean persistent) setProducerBenchmark(BenchmarkService producerBenchmark) setProducersPerDestination(int producersPerDestination) setSharedConnections(boolean sharedConnections) setSharedSubscription(int sharedSubscription) setThreads(int threads) setTransaction(boolean transaction) setTtl(long ttl) Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.perf.PerfCommand
collectAndReportStatisticsWhileRunning, getCompleted, getDestinations, getDuration, getHdrFileName, getMessageCount, getNumDestinations, getReportFileName, getWarmup, isShowLatency, lookupDestinations, setDestinations, setDuration, setHdrFileName, setMessageCount, setNumDestinations, setReportFileName, setShowLatency, setWarmupMethods inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
createConnectionFactory, createConnectionFactory, createCoreConnectionFactory, createCoreConnectionFactory, getClientID, getProtocol, setClientID, setProtocol, setProtocolMethods inherited from class org.apache.activemq.artemis.cli.commands.messages.BasicConnectionAbstract
createConnectionFactory, performCoreManagement, performCoreManagement, tryConnectMethods inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionConfigurationAbtract
getAcceptor, getBrokerURL, getPassword, getUser, inputBrokerURL, inputPassword, inputUser, recoverConnectionInformation, saveConnectionInfo, setAcceptor, setBrokerURL, setPassword, setUserMethods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInputMethods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
Field Details
-
transaction
protected boolean transaction -
durableSubscription
protected boolean durableSubscription -
consumerConnections
protected int consumerConnections -
consumersPerDestination
protected int consumersPerDestination -
persistent
protected boolean persistent -
messageSize
protected int messageSize -
rate
-
ttl
protected long ttl -
msgGroupID
-
producersPerDestination
protected int producersPerDestination -
threads
protected int threads -
maxPending
protected long maxPending -
consumerUrl
-
consumerProtocol
-
enableMessageID
protected boolean enableMessageID -
enableTimestamp
protected boolean enableTimestamp
-
-
Constructor Details
-
PerfClientCommand
public PerfClientCommand()
-
-
Method Details
-
onExecuteBenchmark
protected void onExecuteBenchmark(javax.jms.ConnectionFactory producerConnectionFactory, javax.jms.Destination[] jmsDestinations, ActionContext context) throws Exception - Specified by:
onExecuteBenchmarkin classPerfCommand- Throws:
Exception
-
onInterruptBenchmark
protected void onInterruptBenchmark()- Specified by:
onInterruptBenchmarkin classPerfCommand
-
execute
- Specified by:
executein interfaceAction- Overrides:
executein classPerfCommand- Throws:
Exception
-
isTransaction
public boolean isTransaction() -
setTransaction
-
isDurableSubscription
public boolean isDurableSubscription() -
setDurableSubscription
-
getConsumerConnections
public int getConsumerConnections() -
setConsumerConnections
-
getConsumersPerDestination
public int getConsumersPerDestination() -
setConsumersPerDestination
-
isPersistent
public boolean isPersistent() -
setPersistent
-
getMessageSize
public int getMessageSize() -
setMessageSize
-
getRate
-
setRate
-
getTtl
public long getTtl() -
setTtl
-
getMsgGroupID
-
setMsgGroupID
-
getProducersPerDestination
public int getProducersPerDestination() -
setProducersPerDestination
-
getThreads
public int getThreads() -
setThreads
-
getMaxPending
public long getMaxPending() -
setMaxPending
-
getConsumerUrl
-
setConsumerUrl
-
getConsumerProtocol
-
setConsumerProtocol
-
isEnableMessageID
public boolean isEnableMessageID() -
setEnableMessageID
-
isEnableTimestamp
public boolean isEnableTimestamp() -
setEnableTimestamp
-
getProducerBenchmark
-
setProducerBenchmark
-