Class PerfProducerCommand
- 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.PerfProducerCommand
-
public class PerfProducerCommand extends PerfCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected BenchmarkServicebenchmarkprotected booleanenableMessageIDprotected booleanenableTimestampprotected longmaxPendingprotected intmessageSizeprotected StringmsgGroupIDprotected booleanpersistentprotected intproducersPerDestinationprotected Longrateprotected booleansharedConnectionsprotected intthreadsprotected longttl-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.perf.PerfCommand
commitInterval, destinations, duration, hdrFileName, messageCount, numDestinations, reportFileName, showLatency, txSize, warmup
-
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 PerfProducerCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidonExecuteBenchmark(javax.jms.ConnectionFactory factory, javax.jms.Destination[] jmsDestinations, ActionContext context)protected voidonInterruptBenchmark()-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.perf.PerfCommand
collectAndReportStatisticsWhileRunning, execute, getCompleted, getDestinations, getDuration, getHdrFileName, getMessageCount, getNumDestinations, getReportFileName, getWarmup, isShowLatency, lookupDestinations, setDestinations, setDuration, setHdrFileName, setMessageCount, setNumDestinations, setReportFileName, setShowLatency, setWarmup
-
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
-
persistent
protected boolean persistent
-
messageSize
protected int messageSize
-
rate
protected Long rate
-
ttl
protected long ttl
-
msgGroupID
protected String msgGroupID
-
sharedConnections
protected boolean sharedConnections
-
producersPerDestination
protected int producersPerDestination
-
threads
protected int threads
-
maxPending
protected long maxPending
-
enableMessageID
protected boolean enableMessageID
-
enableTimestamp
protected boolean enableTimestamp
-
benchmark
protected volatile BenchmarkService benchmark
-
-
Method Detail
-
onExecuteBenchmark
protected void onExecuteBenchmark(javax.jms.ConnectionFactory factory, javax.jms.Destination[] jmsDestinations, ActionContext context) throws Exception- Specified by:
onExecuteBenchmarkin classPerfCommand- Throws:
Exception
-
onInterruptBenchmark
protected void onInterruptBenchmark()
- Specified by:
onInterruptBenchmarkin classPerfCommand
-
-