public abstract class BenchmarkDriverAdapter extends Object implements BenchmarkDriver
| Modifier and Type | Field and Description |
|---|---|
protected BenchmarkConfiguration |
cfg
Benchmark configuration.
|
| Constructor and Description |
|---|
BenchmarkDriverAdapter() |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Gets benchmark description.
|
Collection<BenchmarkProbe> |
probes()
Gets collection of custom probes that this benchmark provides.
|
void |
setUp(BenchmarkConfiguration cfg)
This method is invoked right before the
BenchmarkDriver.test() method. |
void |
tearDown()
This method is invoked right after the
BenchmarkDriver.test() method. |
String |
usage()
Gets benchmark usage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittestprotected BenchmarkConfiguration cfg
public void setUp(BenchmarkConfiguration cfg) throws Exception
BenchmarkDriver.test() method.
All benchmark preparation and all resource initialization should be done here.setUp in interface BenchmarkDrivercfg - Benchmark configuration.Exception - If failed.public void tearDown()
throws Exception
BenchmarkDriver.test() method.
All necessary resources should be released here.tearDown in interface BenchmarkDriverException - If failed.public Collection<BenchmarkProbe> probes()
probes in interface BenchmarkDrivernull if set of default probes should be used.public String description()
description in interface BenchmarkDriverpublic String usage()
usage in interface BenchmarkDriverCopyright © 2014. All rights reserved.