Class PerfCommand

All Implemented Interfaces:
Runnable, Action
Direct Known Subclasses:
PerfClientCommand, PerfConsumerCommand, PerfProducerCommand

public abstract class PerfCommand extends ConnectionAbstract
  • Field Details

    • showLatency

      protected boolean showLatency
    • reportFileName

      protected String reportFileName
    • hdrFileName

      protected String 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

      protected List<String> destinations
  • Constructor Details

    • PerfCommand

      public PerfCommand()
  • Method Details

    • execute

      public Object execute(ActionContext context) throws Exception
      Specified by:
      execute in interface Action
      Overrides:
      execute in class ConnectionConfigurationAbtract
      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

      public PerfCommand setShowLatency(boolean showLatency)
    • getReportFileName

      public String getReportFileName()
    • setReportFileName

      public PerfCommand setReportFileName(String reportFileName)
    • getHdrFileName

      public String getHdrFileName()
    • setHdrFileName

      public PerfCommand setHdrFileName(String hdrFileName)
    • getDuration

      public int getDuration()
    • setDuration

      public PerfCommand setDuration(int duration)
    • getWarmup

      public int getWarmup()
    • setWarmup

      public PerfCommand setWarmup(int warmup)
    • getMessageCount

      public long getMessageCount()
    • setMessageCount

      public PerfCommand setMessageCount(long messageCount)
    • getNumDestinations

      public int getNumDestinations()
    • setNumDestinations

      public PerfCommand setNumDestinations(int numDestinations)
    • getDestinations

      public List<String> getDestinations()
    • setDestinations

      public PerfCommand setDestinations(List<String> destinations)
    • getCompleted

      public CountDownLatch getCompleted()