net.grinder.common
Interface ThreadLifeCycleListener

All Known Subinterfaces:
PluginThreadListener
All Known Implementing Classes:
SkeletonThreadLifeCycleListener

public interface ThreadLifeCycleListener

Thread life cycle event call backs.

All methods will be called using the thread to which the event refers.

Author:
Philip Aston

Method Summary
 void beginRun()
          This method is called at the start of every run.
 void beginShutdown()
          This method is called before the thread is shut down.
 void beginThread()
          This method is called just after the thread has started.
 void endRun()
          This method is called at the end of every run.
 void endThread()
          This method is called when the thread has been shut down.
 

Method Detail

beginThread

void beginThread()
This method is called just after the thread has started.

Plugin thread listeners created by GrinderPlugin.createThreadListener(net.grinder.plugininterface.PluginThreadContext) will will receive this event, so long as their plugin registers itself before the worker threads start (see notes at PluginRegistry).


beginRun

void beginRun()
This method is called at the start of every run.


endRun

void endRun()
This method is called at the end of every run.


beginShutdown

void beginShutdown()
This method is called before the thread is shut down. This happens before any __del__ method is called.


endThread

void endThread()
This method is called when the thread has been shut down.



Copyright © 2000-2013. All Rights Reserved.