net.spy
Class SpyThread

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.spy.SpyThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
CacheClearRequestListener, Cron, LoopingThread, QuickRun, SpyLogFlusher, SpyRunner, TTLMonitor

public class SpyThread
extends Thread

Superclass for all Spy Threads.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SpyThread()
          Get an instance of SpyThread.
SpyThread(String name)
          Get an instance of SpyThread with a name.
SpyThread(ThreadGroup t, String name)
          Get an instance of SpyThread with a name.
 
Method Summary
protected  Logger getLogger()
          Get a Logger instance for this class.
 
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, run, 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

SpyThread

public SpyThread()
Get an instance of SpyThread.


SpyThread

public SpyThread(String name)
Get an instance of SpyThread with a name.

Parameters:
name - thread name

SpyThread

public SpyThread(ThreadGroup t,
                 String name)
Get an instance of SpyThread with a name.

Parameters:
t - the threadgroup in which this Thread will survive
name - thread name
Method Detail

getLogger

protected Logger getLogger()
Get a Logger instance for this class.

Returns:
an appropriate logger instance.