soc.server
Class SOCServerRobotPinger

java.lang.Object
  extended by java.lang.Thread
      extended by soc.server.SOCServerRobotPinger
All Implemented Interfaces:
java.lang.Runnable

public class SOCServerRobotPinger
extends java.lang.Thread

Pings the robots so that they know that they're connected to the server

Author:
Robert S Thomas

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean alive
           
private  SOCServerPing ping
           
private  java.util.Vector<StringConnection> robotConnections
           
private  int sleepTime
           
private  SOCServer srv
          Our server.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SOCServerRobotPinger(SOCServer s, java.util.Vector<StringConnection> robots)
          Create a server robot pinger
 
Method Summary
 void run()
          DOCUMENT ME!
 void stopPinger()
          Cleanly exit the thread's run loop.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

robotConnections

private java.util.Vector<StringConnection> robotConnections

sleepTime

private int sleepTime

ping

private SOCServerPing ping

alive

private boolean alive

srv

private final SOCServer srv
Our server.

Since:
1.1.11
Constructor Detail

SOCServerRobotPinger

public SOCServerRobotPinger(SOCServer s,
                            java.util.Vector<StringConnection> robots)
Create a server robot pinger

Parameters:
robots - the connections to robots; a Vector of StringConnections
Method Detail

run

public void run()
DOCUMENT ME!

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopPinger

public void stopPinger()
Cleanly exit the thread's run loop.