net.sourceforge.yagurashogi.server
Class GameMonitor

java.lang.Object
  extended by java.lang.Thread
      extended by net.sourceforge.yagurashogi.server.GameMonitor
All Implemented Interfaces:
java.lang.Runnable

public class GameMonitor
extends java.lang.Thread

A utility that works in background, watches over games and checks if times aren't up.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GameMonitor(ShogiServer shogiServer)
          Creates new instance of GameMonitor.
 
Method Summary
 void run()
          Main loop.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameMonitor

public GameMonitor(ShogiServer shogiServer)
Creates new instance of GameMonitor.

Parameters:
shogiServer - the server instance to associate this monitor with
Method Detail

run

public void run()
Main loop.

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