pool
Class TimeCounter

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--pool.TimeCounter

public class TimeCounter
extends Thread

Controlls the jar lifetime according to the time associated to its group.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimeCounter(String groupName)
          Controlls the jar lifetime according to the time associated to its group.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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

TimeCounter

public TimeCounter(String groupName)
Controlls the jar lifetime according to the time associated to its group. The lifetime of a group have to be stored in the database.
Parameters:
String - the group whitch lifetime will be controlled
Throws:
LifetimeException - Thrown when the Lifetime of the agent ends.
InterruptedException - If this thread is interrupted by another thread
See Also:
DBImplemtentation
Method Detail

run

public void run()
Overrides:
run in class Thread