Class PerfCommand
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
- Direct Known Subclasses:
PerfClientCommand,PerfConsumerCommand,PerfProducerCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected intprotected Stringprotected longprotected intprotected Stringprotected booleanprotected longprotected intFields 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 TypeMethodDescriptionprotected booleancollectAndReportStatisticsWhileRunning(boolean warmingUp, LiveStatistics statistics, StringBuilder skratchBuffer, long endWarmup, long end, BenchmarkService benchmark) execute(ActionContext context) intlongintintbooleanprotected final javax.jms.Destination[]lookupDestinations(javax.jms.ConnectionFactory factory) protected abstract voidonExecuteBenchmark(javax.jms.ConnectionFactory factory, javax.jms.Destination[] jmsDestinations, ActionContext context) protected abstract voidsetDestinations(List<String> destinations) setDuration(int duration) setHdrFileName(String hdrFileName) setMessageCount(long messageCount) setNumDestinations(int numDestinations) setReportFileName(String reportFileName) setShowLatency(boolean showLatency) setWarmup(int warmup) Methods 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
-
showLatency
protected boolean showLatency -
reportFileName
-
hdrFileName
-
duration
protected int duration -
warmup
protected int warmup -
messageCount
protected long messageCount -
numDestinations
protected int numDestinations -
txSize
protected long txSize -
commitInterval
protected long commitInterval -
destinations
-
-
Constructor Details
-
PerfCommand
public PerfCommand()
-
-
Method Details
-
execute
- Specified by:
executein interfaceAction- Overrides:
executein classConnectionConfigurationAbtract- Throws:
Exception
-
onExecuteBenchmark
protected abstract void onExecuteBenchmark(javax.jms.ConnectionFactory factory, javax.jms.Destination[] jmsDestinations, ActionContext context) throws Exception - Throws:
Exception
-
onInterruptBenchmark
protected abstract void onInterruptBenchmark() -
collectAndReportStatisticsWhileRunning
protected boolean collectAndReportStatisticsWhileRunning(boolean warmingUp, LiveStatistics statistics, StringBuilder skratchBuffer, long endWarmup, long end, BenchmarkService benchmark) throws IOException - Throws:
IOException
-
lookupDestinations
protected final javax.jms.Destination[] lookupDestinations(javax.jms.ConnectionFactory factory) throws Exception - Throws:
Exception
-
isShowLatency
public boolean isShowLatency() -
setShowLatency
-
getReportFileName
-
setReportFileName
-
getHdrFileName
-
setHdrFileName
-
getDuration
public int getDuration() -
setDuration
-
getWarmup
public int getWarmup() -
setWarmup
-
getMessageCount
public long getMessageCount() -
setMessageCount
-
getNumDestinations
public int getNumDestinations() -
setNumDestinations
-
getDestinations
-
setDestinations
-
getCompleted
-