org.deegree_impl.enterprise
Class AbstractOGCServlet.Reloader

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.deegree_impl.enterprise.AbstractOGCServlet.Reloader
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
AbstractOGCServlet

protected class AbstractOGCServlet.Reloader
extends java.lang.Thread

Inner class that is used to monitor the configuration file (capabilities-file). If the file is altered, the service is signalled to reinitialize itself by a call to initService ().


Field Summary
private  boolean doExit
           
private  int freq
           
private  long lastTS
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected AbstractOGCServlet.Reloader(java.lang.String capabilities, java.lang.String freqStr)
          Constructs a new Reloader-Object.
 
Method Summary
 void decease()
          Kills the Reloader-Thread in a safe fashion.
 void run()
          Called internally when this Thread is started.
 
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

lastTS

private long lastTS

freq

private int freq

doExit

private boolean doExit
Constructor Detail

AbstractOGCServlet.Reloader

protected AbstractOGCServlet.Reloader(java.lang.String capabilities,
                                      java.lang.String freqStr)
Constructs a new Reloader-Object. It will be started as a separate thread.

Parameters:
capabilities - file that should be monitored
freqStr - check interval in seconds (as String)
Method Detail

decease

public void decease()
Kills the Reloader-Thread in a safe fashion.


run

public void run()
Called internally when this Thread is started.