com.flexiblewebsolutions.xdriveunit.loadtest
Class ThreadCallback

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

public abstract class ThreadCallback
extends java.lang.Object

Initiates logic when all threads have completed.

Author:
Donavon Buss

Constructor Summary
ThreadCallback()
           
 
Method Summary
 java.lang.String getTestMode()
          Returns the mode which will be part of the filename.
 java.io.File getTmpDir()
          Returns the directory where temporary files are written
 void setTestMode(java.lang.String pTestMode)
          Sets the mode which will be part of the filename.
 void setTmpDir(java.io.File pTmpDir)
          Sets the directory where temporary files are written
abstract  void threadsFinished(java.util.ArrayList pThreadNames)
          Called by ThreadTracker to indicate all expected threads have completed
protected  void writeStatsFile(java.util.ArrayList pThreadNames)
          Summarizes click time statistics for summarizing data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadCallback

public ThreadCallback()
Method Detail

setTestMode

public void setTestMode(java.lang.String pTestMode)
Sets the mode which will be part of the filename.

Parameters:
pTestMode - Name of test set

getTestMode

public java.lang.String getTestMode()
Returns the mode which will be part of the filename.

Returns:
The name of the test set

getTmpDir

public java.io.File getTmpDir()
Returns the directory where temporary files are written

Returns:
Temporary directory location

setTmpDir

public void setTmpDir(java.io.File pTmpDir)
Sets the directory where temporary files are written

Parameters:
pTmpDir - - Directory that can be written by application

threadsFinished

public abstract void threadsFinished(java.util.ArrayList pThreadNames)
Called by ThreadTracker to indicate all expected threads have completed

Parameters:
pThreadNames - - Unique names for threads that have completed

writeStatsFile

protected void writeStatsFile(java.util.ArrayList pThreadNames)
Summarizes click time statistics for summarizing data

Parameters:
pThreadNames - - Threads that may have output a stats file


Copyright © -2005 . All Rights Reserved.