Class BenchmarkExecutor


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

      • BenchmarkExecutor

        public BenchmarkExecutor​(String description)
      • BenchmarkExecutor

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

      • 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()