net.grinder.plugininterface
Interface PluginThreadContext


public interface PluginThreadContext

This class is used to share thread information between the Grinder and the plug-in.

Author:
Paco Gomez, Philip Aston

Method Summary
 int getRunNumber()
          Return the current run number.
 int getThreadNumber()
          Return the thread number.
 void pauseClock()
          The time taken between invocations of pauseClock() and resumeClock() is not included in the recorded time for a test.
 void resumeClock()
           
 

Method Detail

getThreadNumber

int getThreadNumber()
Return the thread number.

Returns:
The thread number.

getRunNumber

int getRunNumber()
Return the current run number.

Returns:
The current run number.

pauseClock

void pauseClock()
The time taken between invocations of pauseClock() and resumeClock() is not included in the recorded time for a test. This allows plug-ins to discount the cost of expensive pre or post processing.

Has no effect if called when the is no dispatch in progress.


resumeClock

void resumeClock()
See Also:
pauseClock()


Copyright © 2000-2013. All Rights Reserved.