org.glite.data.common.servicethreads
Class ServiceThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.glite.data.common.servicethreads.ServiceThread
All Implemented Interfaces:
java.lang.Runnable

public class ServiceThread
extends java.lang.Thread

Defines the methods that a maintenance thread must implement.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServiceThread(java.lang.String className)
           
 
Method Summary
 void run()
          If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.
 void shutdown()
           
 
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

ServiceThread

public ServiceThread(java.lang.String className)
              throws java.lang.ClassNotFoundException,
                     java.lang.IllegalAccessException,
                     java.lang.InstantiationException,
                     java.lang.ClassCastException
Method Detail

shutdown

public void shutdown()

run

public void run()
If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.

Subclasses of Thread should override this method.

See Also:
Thread.start(), Thread.stop(), Thread.Thread(ThreadGroup, Runnable, String), Runnable.run()