org.edg.info
Class CleanableInstance.CleanUpThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.edg.info.CleanableInstance.CleanUpThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
CleanableInstance

public class CleanableInstance.CleanUpThread
extends java.lang.Thread

Thread used to clean up database in DBProducer


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CleanableInstance.CleanUpThread(java.lang.String tableName, java.lang.String cleanUpPredicate, long cleanUpInterval)
          Set-up thread to clean up specified table.
 
Method Summary
 void run()
          Thread sleeps for clean-up interval then contacts database to clean-up.
 void terminate()
          Stop the clean-up thread.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CleanableInstance.CleanUpThread

public CleanableInstance.CleanUpThread(java.lang.String tableName,
                                       java.lang.String cleanUpPredicate,
                                       long cleanUpInterval)
                                throws org.glite.rgma.system.RGMAException
Set-up thread to clean up specified table.

Parameters:
tableName - DOCUMENT ME!
cleanUpPredicate - DOCUMENT ME!
cleanUpInterval - DOCUMENT ME!
Throws:
org.glite.rgma.system.RGMAException - DOCUMENT ME!
Method Detail

run

public void run()
Thread sleeps for clean-up interval then contacts database to clean-up. Terminates when terminate() is called (alive = false).


terminate

public void terminate()
Stop the clean-up thread.