public abstract class BenchmarkExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPKEY_BENCHMARK |
| Constructor and Description |
|---|
BenchmarkExecutor(String description) |
BenchmarkExecutor(String description,
int total) |
| Modifier and Type | Method and Description |
|---|---|
void |
account(long all,
long failed) |
void |
close() |
void |
execute() |
long |
getErrorAccout() |
protected long |
getRealAccount(long account) |
protected static long |
getSecureIndex() |
protected abstract Runnable |
getTester() |
int |
getThreads() |
boolean |
isInterrupted() |
protected void |
printHeader() |
protected void |
printStatus() |
protected void |
printSummary() |
protected void |
resetStartTime() |
BenchmarkExecutor |
setDuration(String duration) |
BenchmarkExecutor |
setThreads(int threads) |
BenchmarkExecutor |
setUnit(String unit) |
protected boolean |
stop() |
public static final String PROPKEY_BENCHMARK
public BenchmarkExecutor(String description)
public BenchmarkExecutor(String description, int total)
protected long getRealAccount(long account)
public void close()
public void execute()
public boolean isInterrupted()
public BenchmarkExecutor setDuration(String duration)
public BenchmarkExecutor setThreads(int threads)
public long getErrorAccout()
public void account(long all,
long failed)
public int getThreads()
protected void resetStartTime()
protected boolean stop()
protected void printHeader()
protected void printStatus()
public BenchmarkExecutor setUnit(String unit)
protected void printSummary()
protected static long getSecureIndex()
Copyright © 2023. All rights reserved.