it.unimo.dbgroup.momis.tools
Class IdManager

java.lang.Object
  extended byjava.lang.Thread
      extended byit.unimo.dbgroup.momis.tools.IdManager
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
WSDLWrapper_impl_QIdManager

public class IdManager
extends java.lang.Thread

Manages the time-out for a set of IdManageable objects.

Author:
Alberto Corni and Jonathan Gelati, Oct 2002

Field Summary
private  boolean _alive
           
private  boolean _debug
           
private  java.util.Vector _list
           
private  java.util.HashMap _map
           
private  long _sleepTime
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IdManager()
           
IdManager(long milliSeconds)
           
 
Method Summary
 void add(IdManageable tot)
           
 void check()
           
 IdManageable getIdManageable(java.lang.String qId)
           
 void remove(IdManageable tot)
           
 void run()
           
 void setDebug(boolean debug)
           
 void setSleepTime(long milliSeconds)
           
 void stopManager()
           
 
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
 

Field Detail

_sleepTime

private long _sleepTime

_list

private java.util.Vector _list

_map

private java.util.HashMap _map

_debug

private boolean _debug

_alive

private boolean _alive
Constructor Detail

IdManager

public IdManager()

IdManager

public IdManager(long milliSeconds)
Method Detail

setDebug

public void setDebug(boolean debug)

stopManager

public void stopManager()

setSleepTime

public void setSleepTime(long milliSeconds)

add

public void add(IdManageable tot)

remove

public void remove(IdManageable tot)

getIdManageable

public IdManageable getIdManageable(java.lang.String qId)

check

public void check()

run

public void run()


Universita' di Modena e Reggio Emilia