JCas
v0.3.1

cas
Class JCasServer.Monitor

java.lang.Object
  extended byjava.lang.Thread
      extended bycas.JCasServer.Monitor
All Implemented Interfaces:
Runnable
Enclosing class:
JCasServer

protected class JCasServer.Monitor
extends Thread

Inner class that checks each connection thread if it timed out and creates or destroys spare threads in advance.


Field Summary
protected  boolean runMonitor
          Controls the state of the monitor.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected JCasServer.Monitor()
           
 
Method Summary
 void run()
          /** Checks the state of each thread and controls number of threads.
 void stopThread()
          Stops the monitor 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

runMonitor

protected boolean runMonitor
Controls the state of the monitor.

Constructor Detail

JCasServer.Monitor

protected JCasServer.Monitor()
Method Detail

run

public void run()
/** Checks the state of each thread and controls number of threads.


stopThread

public void stopThread()
Stops the monitor thread.


JCas
v0.3.1