proper.remote
Class JobDistributor

java.lang.Object
  extended by java.lang.Thread
      extended by proper.remote.Processor
          extended by proper.remote.JobDistributor
All Implemented Interfaces:
java.lang.Runnable, TimerInterface

public class JobDistributor
extends Processor
implements TimerInterface

This server thread is only there for distributing jobs to clients. It periodically checks whether there are any client waiting for jobs.

Version:
$Revision: 1.2 $
Author:
FracPete

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int INTERVAL
          the interval in msec we check for "free" clients to send new jobs
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JobDistributor(Server server, java.net.Socket client)
          initializes the object
 
Method Summary
 void timerEvent(Timer t)
          this method is called if the Timer, this object is registered with, fires
 
Methods inherited from class proper.remote.Processor
addToAccessLog, addToErrorLog, createMessage, run
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERVAL

public static final int INTERVAL
the interval in msec we check for "free" clients to send new jobs

See Also:
Constant Field Values
Constructor Detail

JobDistributor

public JobDistributor(Server server,
                      java.net.Socket client)
initializes the object

Method Detail

timerEvent

public void timerEvent(Timer t)
this method is called if the Timer, this object is registered with, fires

Specified by:
timerEvent in interface TimerInterface