Purple Code

com.purpletech.message.server
Class Checker

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.purpletech.message.server.Checker
All Implemented Interfaces:
java.lang.Runnable

public class Checker
extends java.lang.Thread

Checks all clients to make sure they're still connected; times out stale clients.

Version:
$Id: Checker.java,v 1.2 2001/10/30 12:20:52 alex Exp $
Author:
Alex

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Checker(MessageServer server, java.util.Set clients, java.util.List problems, int sleep, int timeout, int ping, ThreadWatcher watcher)
           
Checker(MessageServer server, java.util.Set clients, java.util.List problems, ThreadWatcher watcher)
           
 
Method Summary
 void run()
           
 
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
 

Constructor Detail

Checker

public Checker(MessageServer server,
               java.util.Set clients,
               java.util.List problems,
               ThreadWatcher watcher)
Parameters:
clients - the list of currently connected clients
problems - the list of clients who had problems

Checker

public Checker(MessageServer server,
               java.util.Set clients,
               java.util.List problems,
               int sleep,
               int timeout,
               int ping,
               ThreadWatcher watcher)
Parameters:
clients - the list of currently connected clients
problems - the list of clients who had problems
sleep - msec to wait between runs
timeout - msec to wait before disconnecting a client
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

Documentation generated March 5 2003