net.sf.sparql.benchmarking.runners
Interface Runner<T extends Options>

Type Parameters:
T - Options type
All Known Implementing Classes:
AbstractRunner, BenchmarkRunner, SmokeRunner, SoakRunner, StressRunner

public interface Runner<T extends Options>

Interface for test runners

Author:
rvesse

Method Summary
 void halt(T options, Exception e)
          Requests that the run be halted, exact halting conditions and behaviour is specified by the given options
 void halt(T options, String message)
          Requests that the run be halted, exact halting conditions and behaviour is specified by the given options
 void reportAfterOperation(T options, Operation operation, OperationRun run)
          Reports progress after we have run an operation
 void reportAfterOperationMix(T options, OperationMix mix, OperationMixRun run)
          Reports progress after we complete a run of the operation mix
 void reportBeforeOperation(T options, Operation operation)
          Reports progress before we run an operation
 void reportBeforeOperationMix(T options, OperationMix mix)
          Reports progress before we run an operation mix
 void reportPartialProgress(T options, String message)
          Reports progress with an informational message
 void reportProgress(T options)
          Reports a newline as a progress message
 void reportProgress(T options, String message)
          Reports progress with an informational message
 void run(T options)
          Runs with the given options
 

Method Detail

run

void run(T options)
Runs with the given options

Parameters:
options -

reportBeforeOperationMix

void reportBeforeOperationMix(T options,
                              OperationMix mix)
Reports progress before we run an operation mix

Parameters:
options - Options
mix - Operation mix

reportAfterOperationMix

void reportAfterOperationMix(T options,
                             OperationMix mix,
                             OperationMixRun run)
Reports progress after we complete a run of the operation mix

Parameters:
options - Options
mix - Operation mix
run - Operation mix run information

reportBeforeOperation

void reportBeforeOperation(T options,
                           Operation operation)
Reports progress before we run an operation

Parameters:
options - Options
operation - Operation

reportAfterOperation

void reportAfterOperation(T options,
                          Operation operation,
                          OperationRun run)
Reports progress after we have run an operation

Parameters:
options - Options
operation - Operation
run - Run information

reportProgress

void reportProgress(T options,
                    String message)
Reports progress with an informational message

Messages passed to this function will always have a terminating newline character added to them before being sent to listeners

You can configure what happens to the reporting messages by adding ProgressListener instances with the Options.addListener(ProgressListener) method

Parameters:
options - Options
message - Informational Message

reportPartialProgress

void reportPartialProgress(T options,
                           String message)
Reports progress with an informational message

Messages passed to this function are sent to listeners as-is

Parameters:
options - Options
message - Informational Message

reportProgress

void reportProgress(T options)
Reports a newline as a progress message

Parameters:
options - Options

halt

void halt(T options,
          Exception e)
Requests that the run be halted, exact halting conditions and behaviour is specified by the given options

Parameters:
options - Options
e - Exception

halt

void halt(T options,
          String message)
Requests that the run be halted, exact halting conditions and behaviour is specified by the given options

Parameters:
options - Options
message - Halting Message


Copyright © 2014. All Rights Reserved.