com.sun.slamd.isw
Class NTLatencyCheckConsumerThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.sun.slamd.isw.NTLatencyCheckConsumerThread
All Implemented Interfaces:
java.lang.Runnable

public class NTLatencyCheckConsumerThread
extends java.lang.Thread

This class defines a thread that watches for changes to a specified user in a Windows NT domain and notifies another thread responsible for making changes against the Sun ONE Directory that the change was pushed across.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NTLatencyCheckConsumerThread(ISWLatencyCheckJobClass jobClass)
          Creates a new instance of this consumer thread, reading the comment from the monitor entry.
 
Method Summary
 java.lang.String getUserComment()
          Retrieves the comment from the monitor entry.
 void run()
          Loop, watching for changes in Active Directory until requested to stop.
 void startChecking()
          Indicates that this consumer thread should start the work of measuring latency by periodically polling a user in the NT domain.
 void stopAndWait()
          Indicates that this consumer 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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

NTLatencyCheckConsumerThread

public NTLatencyCheckConsumerThread(ISWLatencyCheckJobClass jobClass)
Creates a new instance of this consumer thread, reading the comment from the monitor entry.

Parameters:
jobClass - The job class instance with which this consumer thread is associated.
Method Detail

getUserComment

public java.lang.String getUserComment()
Retrieves the comment from the monitor entry.

Returns:
The comment from the monitor entry, or null if it does not have one.

startChecking

public void startChecking()
Indicates that this consumer thread should start the work of measuring latency by periodically polling a user in the NT domain.


stopAndWait

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


run

public void run()
Loop, watching for changes in Active Directory until requested to stop.