QJCC homepage

biz.chitec.quarterback.gjsa.server
Class Vulture

java.lang.Object
  extended byjava.lang.Thread
      extended bybiz.chitec.quarterback.gjsa.server.Vulture
All Implemented Interfaces:
java.lang.Runnable

public final class Vulture
extends java.lang.Thread

Vulture thread that removes died threads from the server's connection list. Normally, the vulture is notified by the dying threads, but for those which forget, it wakes up every five seconds to check.

Version:
$Id: 32180f05e0f560f410e6bd0c68bf2269b3139a1f $
Author:
Dirk Hillbrecht 1997-1999, Idea: Java in a nutshell, 1st ed., chitec/Dirk Hillbrecht 2000,2002. Distributed under the terms of the GNU LGPL.

Field Summary
private  java.util.List extvuls
           
private  Logger mess
           
private  GJSAServer server
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Vulture(GJSAServer s)
           
 
Method Summary
 void addExternalVulture(java.lang.Runnable r)
           
 void removeExternalVulture(java.lang.Runnable r)
           
 void run()
          main vulture loop.
 
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

server

private GJSAServer server

mess

private Logger mess

extvuls

private java.util.List extvuls
Constructor Detail

Vulture

public Vulture(GJSAServer s)
Method Detail

addExternalVulture

public void addExternalVulture(java.lang.Runnable r)

removeExternalVulture

public void removeExternalVulture(java.lang.Runnable r)

run

public void run()
main vulture loop. Turns forever


QJCC homepage