|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.sf.jbenchmark.BenchmarkTask
Currently the main part of JBenchmark intended for running from ANT only. In the future we would like to extract this and have this class as an integration point only.
Nested Class Summary | |
static class |
BenchmarkTask.Script
Information about a benchmark script. |
Field Summary |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
BenchmarkTask()
|
Method Summary | |
void |
addConfiguredDb(ConnectionFactory factory)
Adds a connection factory. |
void |
addConfiguredHttpServer(HttpServer server)
Adds a HTTP server element. |
void |
addConfiguredPublisher(FileResultPublisher publisher)
Adds a result publisher. |
void |
addConfiguredScript(BenchmarkTask.Script script)
Adds a benchmark script to execute. |
protected java.lang.Object |
dynamicallyLoad(java.lang.Class superClass,
java.lang.String className)
Load a class ensuring that it is of a specific type of super class. |
void |
execute()
Executtes the benchmark. |
protected TopLevelContext |
getTestContext()
|
void |
setFormatter(java.lang.String formatterClassName)
Set the formatter. |
void |
setScript(java.io.File script)
Sets the benchmark script to execute. |
void |
setStatisticPublisher(java.lang.String statisticPublisherName)
Set the statistic publisher. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BenchmarkTask()
Method Detail |
public void setScript(java.io.File script)
public void addConfiguredScript(BenchmarkTask.Script script)
public void addConfiguredHttpServer(HttpServer server)
public void addConfiguredPublisher(FileResultPublisher publisher)
public void addConfiguredDb(ConnectionFactory factory)
public void setStatisticPublisher(java.lang.String statisticPublisherName)
public void setFormatter(java.lang.String formatterClassName)
protected java.lang.Object dynamicallyLoad(java.lang.Class superClass, java.lang.String className)
protected TopLevelContext getTestContext()
TopLevelContext
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |