com.sun.faban.harness
Class DefaultFabanBenchmark

java.lang.Object
  extended by com.sun.faban.harness.DefaultFabanBenchmark
All Implemented Interfaces:
Benchmark

Deprecated. Replaced by DefaultFabanBenchmark2, this class is provided for backward compatibility and is to be removed in the future.

@Deprecated
public class DefaultFabanBenchmark
extends Object
implements Benchmark

The default benchmark class 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 DefaultFabanBenchmark if the actual driver is not implemented using the Faban Driver Framework. Implement the Benchmark interface directly in such cases.

Author:
Akara Sucharitakul

Field Summary
protected  Map<String,List<String>> agentEnv
          Deprecated. Environment to pass to agents when starting.
protected  String[] agentHosts
          Deprecated. The agent hosts.
protected  List<String> agents
          Deprecated. The agent list.
protected  Map<String,List<String>> hostAgents
          Deprecated. The map from host to agents.
protected  CommandHandle masterHandle
          Deprecated. Command handle to the master.
protected  ParamRepository params
          Deprecated. The param repository.
 
Constructor Summary
DefaultFabanBenchmark()
          Deprecated.  
 
Method Summary
 void configure()
          Deprecated. This method is called to configure the specific benchmark run Tasks done in this method include reading user parameters, logging them and initializing various local variables.
 void end()
          Deprecated. This method is responsible for waiting for all commands started and run all postprocessing needed.
 void kill()
          Deprecated. This method aborts the current benchmark run and is called when a user asks for a run to be killed.
 void start()
          Deprecated. This method is responsible for starting the benchmark run.
 void validate()
          Deprecated. 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
Deprecated. 
The param repository.


agents

protected List<String> agents
Deprecated. 
The agent list.


agentHosts

protected String[] agentHosts
Deprecated. 
The agent hosts.


hostAgents

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


agentEnv

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


masterHandle

protected CommandHandle masterHandle
Deprecated. 
Command handle to the master.

Constructor Detail

DefaultFabanBenchmark

public DefaultFabanBenchmark()
Deprecated. 
Method Detail

validate

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

Specified by:
validate in interface Benchmark
Throws:
Exception - if any error occurred.
See Also:
RunContext.exec(com.sun.faban.common.Command)

configure

public void configure()
               throws Exception
Deprecated. 
This method is called to configure the specific benchmark run Tasks done in this method include reading user parameters, logging them and initializing various local variables.

Specified by:
configure in interface Benchmark
Throws:
Exception - if any error occurred.

start

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

Specified by:
start in interface Benchmark
Throws:
Exception - if any error occurred.

end

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

Specified by:
end in interface Benchmark
Throws:
Exception - if any error occurred.

kill

public void kill()
          throws Exception
Deprecated. 
This method aborts the current benchmark run and is called when a user asks for a run to be killed.

Specified by:
kill in interface Benchmark
Throws:
Exception - if any error occurred.