public class SimpleMeasureRunner extends AbstractMeasureRunner
| 限定符和类型 | 字段和说明 |
|---|---|
protected Future<?> |
measureFuture
执行中的测量任务的
Future 实例. |
canceled, completed, eachMeasures, endNanoTime, executorService, failure, startNanoTime, success| 构造器和说明 |
|---|
SimpleMeasureRunner()
构造方法.
|
| 限定符和类型 | 方法和说明 |
|---|---|
MeasureResult |
run(Options options,
Runnable runnable)
执行 runnable 方法,并将执行成功与否、耗时结果等信息存入到 OverallResult 实体对象中.
|
void |
stop()
停止相关的运行测量任务.
|
getCosts, getFailure, getMeasureResult, getSuccess, getTotal, isCancelled, isCompleted, setEndNanoTimeIfEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndNanoTime, getStartNanoTimepublic MeasureResult run(Options options, Runnable runnable)
options - 运行的配置选项实例runnable - 可运行实例public void stop()
Copyright © 2020. All rights reserved.