com.sun.faban.harness
Class DefaultFabanBenchmark2

java.lang.Object
  extended by com.sun.faban.harness.DefaultFabanBenchmark2

public class DefaultFabanBenchmark2
extends Object

The default benchmark class(based on annotations) for use with benchmarks implemented with the Faban Driver Framework. This class is designed to be extended if additional features are desired. Do not use the DefaultFabanBenchmark2 if the actual driver is not implemented using the Faban Driver Framework.

Author:
Akara Sucharitakul

Field Summary
protected  Map<String,List<String>> agentEnv
          Environment to pass to agents when starting.
protected  String[] agentHosts
          The agent hosts.
protected  List<String> agents
          The agent list.
protected  Map<String,List<String>> hostAgents
          The map from host to agents.
protected  CommandHandle masterHandle
          Command handle to the master.
protected  ParamRepository params
          The param repository.
 
Constructor Summary
DefaultFabanBenchmark2()
           
 
Method Summary
 void end()
          This method is responsible for waiting for all commands started and run all postprocessing needed.
 void start()
          This method is responsible for starting the benchmark run.
 void validate()
          Allows benchmark to validate the configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected ParamRepository params
The param repository.


agents

protected List<String> agents
The agent list.


agentHosts

protected String[] agentHosts
The agent hosts.


hostAgents

protected Map<String,List<String>> hostAgents
The map from host to agents.


agentEnv

protected Map<String,List<String>> agentEnv
Environment to pass to agents when starting.


masterHandle

protected CommandHandle masterHandle
Command handle to the master.

Constructor Detail

DefaultFabanBenchmark2

public DefaultFabanBenchmark2()
Method Detail

validate

public void validate()
              throws Exception
Allows benchmark to validate the configuration file. Note that no execution facility is available during validation.

Throws:
Exception - if any error occurred.
See Also:
RunContext.exec(com.sun.faban.common.Command)

start

public void start()
           throws Exception
This method is responsible for starting the benchmark run.

Throws:
Exception - if any error occurred.

end

public void end()
         throws Exception
This method is responsible for waiting for all commands started and run all postprocessing needed.

Throws:
Exception - if any error occurred.