org.tranche.network
Class StatusUpdateProcess

java.lang.Object
  extended by java.lang.Thread
      extended by org.tranche.commons.DebuggableThread
          extended by org.tranche.network.StatusUpdateProcess
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ClientStatusUpdateProcess, ServerStatusUpdateProcess

public abstract class StatusUpdateProcess
extends org.tranche.commons.DebuggableThread

A thread for updating the network status.

Author:
James "Augie" Hill - augman85@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  boolean isRunning
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected StatusUpdateProcess()
          Cannot be instantiated by any class outside the network package.
 
Method Summary
 void safeStop()
          Interrupts the thread, catching any exceptions that may be thrown.
 
Methods inherited from class org.tranche.commons.DebuggableThread
debugErr, debugErr, debugOut, isDebug, setDebug
 
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, run, 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
 

Field Detail

isRunning

protected boolean isRunning
Constructor Detail

StatusUpdateProcess

protected StatusUpdateProcess()

Cannot be instantiated by any class outside the network package.

Method Detail

safeStop

public void safeStop()

Interrupts the thread, catching any exceptions that may be thrown.



This code is free for use both commercially and non-commercially as stated in the project's license