Method Summary |
|
public synchronized void | checkAllThreads() The checkAllThreads method for a dog checks each thread which has been
put into the HashMap. |
public void | clear() |
public void | endWatching() |
public static synchronized ThreadWatchDog | getInstance() The getInstance method insures that the ALPHA_DOG (and therefore also
the BETA_DOG) is a singleton. |
public synchronized void | put(MutableThread aMutableThread) The put method puts a mutable thread into the HashMap for monitoring by a dog. |
public synchronized void | put(Thread aThread) The put method causes the dog to monitor the passed Thread. |
public synchronized void | remove(MutableThread aMutableThread) |
public void | run() This is the run method for the thread. |