LectureGame.Core
Class ConnectionProber

java.lang.Object
  extended by LectureGame.Core.ConnectionProber
All Implemented Interfaces:
java.lang.Runnable

 class ConnectionProber
extends java.lang.Object
implements java.lang.Runnable

Created by IntelliJ IDEA. User: olekrst Date: 22.mar.2007 Time: 13:55:49 This class must be run as a thread. Watches the connected clients and tests to check for problems. Ensures that clients which are not disconnected gracefully are disconnected and terminated. Current implementation runs this check every 2000 ms.


Field Summary
private  boolean alive
           
private  java.util.Vector<StudentClient> connections
           
private  NetworkConnectionKeeper netkeeper
           
 
Constructor Summary
ConnectionProber()
           
 
Method Summary
 void kill()
           
 void run()
           
 void setNetworkConnectionKeeper(NetworkConnectionKeeper n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alive

private boolean alive

connections

private java.util.Vector<StudentClient> connections

netkeeper

private NetworkConnectionKeeper netkeeper
Constructor Detail

ConnectionProber

public ConnectionProber()
Method Detail

run

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

setNetworkConnectionKeeper

public void setNetworkConnectionKeeper(NetworkConnectionKeeper n)

kill

public void kill()