com.sun.faban.harness
Interface Benchmark

All Known Implementing Classes:
DefaultFabanBenchmark

Deprecated. Please use the benchmark annotations going forward

@Deprecated
public interface Benchmark

The methods in this interface are the public face of all UserEnv configured within Faban. New benchmarks that are added should implement this interface.

Author:
Ramesh Ramachandran
See Also:
GenericBenchmark

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.
 

Method Detail

validate

void validate()
              throws Exception
Deprecated. 
Allows benchmark to validate the configuration file. Note that no execution facility is available during validation. This method is just for validation and modifications of the run configuration.

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

configure

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.

Throws:
Exception - if any error occurred.

start

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

Throws:
Exception - if any error occurred.

end

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

Throws:
Exception - if any error occurred.

kill

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.

Throws:
Exception - if any error occurred.