Class PerfCommand

    • Field Detail

      • showLatency

        protected boolean showLatency
      • reportFileName

        protected java.lang.String reportFileName
      • hdrFileName

        protected java.lang.String hdrFileName
      • duration

        protected int duration
      • warmup

        protected int warmup
      • messageCount

        protected long messageCount
      • numDestinations

        protected int numDestinations
      • destinations

        protected java.util.List<java.lang.String> destinations
    • Constructor Detail

      • PerfCommand

        public PerfCommand()
    • Method Detail

      • onExecuteBenchmark

        protected abstract void onExecuteBenchmark​(javax.jms.ConnectionFactory factory,
                                                   javax.jms.Destination[] jmsDestinations,
                                                   ActionContext context)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • onInterruptBenchmark

        protected abstract void onInterruptBenchmark()
      • collectAndReportStatisticsWhileRunning

        protected boolean collectAndReportStatisticsWhileRunning​(boolean warmingUp,
                                                                 LiveStatistics statistics,
                                                                 java.lang.StringBuilder skratchBuffer,
                                                                 long endWarmup,
                                                                 long end,
                                                                 BenchmarkService benchmark)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • lookupDestinations

        protected final javax.jms.Destination[] lookupDestinations​(javax.jms.ConnectionFactory factory)
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isShowLatency

        public boolean isShowLatency()
      • setShowLatency

        public PerfCommand setShowLatency​(boolean showLatency)
      • getReportFileName

        public java.lang.String getReportFileName()
      • setReportFileName

        public PerfCommand setReportFileName​(java.lang.String reportFileName)
      • getHdrFileName

        public java.lang.String getHdrFileName()
      • setHdrFileName

        public PerfCommand setHdrFileName​(java.lang.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 java.util.List<java.lang.String> getDestinations()
      • setDestinations

        public PerfCommand setDestinations​(java.util.List<java.lang.String> destinations)
      • getCompleted

        public java.util.concurrent.CountDownLatch getCompleted()