com.sun.slamd.isw
Class DSLatencyCheckProducerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.slamd.isw.DSLatencyCheckProducerThread
All Implemented Interfaces:
java.lang.Runnable

public class DSLatencyCheckProducerThread
extends java.lang.Thread

This class defines a thread that will periodically make changes to a Sun ONE Directory Server that will be monitored by a consumer thread targeted at the Active Directory server with which the Sun ONE Directory is linked via Identity Synchronization for Windows.

Author:
Neil A. Wilson

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DSLatencyCheckProducerThread(ISWLatencyCheckJobClass jobClass)
          Creates a new instance of this producer thread, including establishing a connection to the Sun ONE Directory.
 
Method Summary
 void run()
          Loop, periodically making changes to the Sun ONE Directory until requested to stop.
 void startChecking()
          Indicates that this producer thread should start the work of measuring latency by periodically modifying an entry in the Sun ONE Directory.
 void stopAndWait()
          Indicates that this producer thread should stop running and that it should wait until verification has been provided that the thread has stopped.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DSLatencyCheckProducerThread

public DSLatencyCheckProducerThread(ISWLatencyCheckJobClass jobClass)
                             throws netscape.ldap.LDAPException
Creates a new instance of this producer thread, including establishing a connection to the Sun ONE Directory.

Parameters:
jobClass - The job class instance with which this producer thread is associated.
Throws:
netscape.ldap.LDAPException - If a problem occurs while establishing the connection to the Sun ONE Directory.
Method Detail

startChecking

public void startChecking()
Indicates that this producer thread should start the work of measuring latency by periodically modifying an entry in the Sun ONE Directory.


stopAndWait

public void stopAndWait()
Indicates that this producer thread should stop running and that it should wait until verification has been provided that the thread has stopped.


run

public void run()
Loop, periodically making changes to the Sun ONE Directory until requested to stop.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread