Class BenchmarkExecutor


  • public abstract class BenchmarkExecutor
    extends java.lang.Object
    Benchmark executor.
    Since:
    2.0.0
    Author:
    Lijun Liao (xipki)
    • Field Detail

      • PROPKEY_BENCHMARK

        public static final java.lang.String PROPKEY_BENCHMARK
        See Also:
        Constant Field Values
    • Constructor Detail

      • BenchmarkExecutor

        public BenchmarkExecutor​(java.lang.String description)
      • BenchmarkExecutor

        public BenchmarkExecutor​(java.lang.String description,
                                 int total)
    • Method Detail

      • getTester

        protected abstract java.lang.Runnable getTester()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getRealAccount

        protected long getRealAccount​(long account)
      • close

        public void close()
      • execute

        public void execute()
      • isInterrupted

        public boolean isInterrupted()
      • getErrorAccount

        public long getErrorAccount()
      • account

        public void account​(long all,
                            long failed)
      • getThreads

        public int getThreads()
      • resetStartTime

        protected void resetStartTime()
      • stop

        protected boolean stop()
      • printHeader

        protected void printHeader()
      • printStatus

        protected void printStatus()
      • printSummary

        protected void printSummary()
      • getSecureIndex

        protected static long getSecureIndex()