com.flexiblewebsolutions.xdriveunit.loadtest
Class ThreadTracker

java.lang.Object
  extended by com.flexiblewebsolutions.xdriveunit.loadtest.ThreadTracker

public class ThreadTracker
extends java.lang.Object

Executes logic when all threads have completed.

Author:
Donavon Buss

Constructor Summary
ThreadTracker(int pNumToRegister, ThreadCallback pTT)
          Sets number of parameters that will be registered
 
Method Summary
 void deregisterThread(java.lang.String pThreadName)
          Record this thread as finished
 void registerThread(java.lang.String pThreadName)
          Record this thread as in process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadTracker

public ThreadTracker(int pNumToRegister,
                     ThreadCallback pTT)
Sets number of parameters that will be registered

Parameters:
pNumToRegister - - Number of threads that should register.
pTT - - Thread Traceback object that will be invoked when all threads have completed.
Method Detail

registerThread

public void registerThread(java.lang.String pThreadName)
Record this thread as in process

Parameters:
pThreadName - - Unique name for this thread

deregisterThread

public void deregisterThread(java.lang.String pThreadName)
Record this thread as finished

Parameters:
pThreadName - - Unique name for thread.


Copyright © -2005 . All Rights Reserved.