net.grinder.scriptengine
Interface ScriptEngineService.ScriptEngine

Enclosing interface:
ScriptEngineService

public static interface ScriptEngineService.ScriptEngine

Handler for a particular type of script.


Method Summary
 ScriptEngineService.WorkerRunnable createWorkerRunnable()
          Create a ScriptEngineService.WorkerRunnable that will be used to run the work for one worker thread.
 ScriptEngineService.WorkerRunnable createWorkerRunnable(Object testRunner)
          Create a ScriptEngineService.WorkerRunnable that will be used to run the work for one worker thread.
 String getDescription()
          Returns a description of the script engine for the log.
 void shutdown()
          Shut down the engine.
 

Method Detail

createWorkerRunnable

ScriptEngineService.WorkerRunnable createWorkerRunnable()
                                                        throws EngineException
Create a ScriptEngineService.WorkerRunnable that will be used to run the work for one worker thread. The ScriptEngineService.WorkerRunnable will forward to a new instance of the script's TestRunner class.

Returns:
The runnable.
Throws:
EngineException - If the runnable could not be created.

createWorkerRunnable

ScriptEngineService.WorkerRunnable createWorkerRunnable(Object testRunner)
                                                        throws EngineException
Create a ScriptEngineService.WorkerRunnable that will be used to run the work for one worker thread. The ScriptEngineService.WorkerRunnable will forward to a the supplied TestRunner.

Parameters:
testRunner - An existing script instance that is callable.
Returns:
The runnable.
Throws:
EngineException - If the runnable could not be created.

shutdown

void shutdown()
              throws EngineException
Shut down the engine.

Throws:
EngineException - If the engine could not be shut down.

getDescription

String getDescription()
Returns a description of the script engine for the log.

Returns:
The description.


Copyright © 2000-2013. All Rights Reserved.