proper.remote
Class Processor

java.lang.Object
  extended by java.lang.Thread
      extended by proper.remote.Processor
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
JobClientProcessor, JobDistributor, JobServerProcessor

public abstract class Processor
extends java.lang.Thread

This class is for processing requests from a client.

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
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Processor(Server server, java.net.Socket client)
          initializes the object
 
Method Summary
 void addToAccessLog(java.lang.String msg)
          adds the message to the access log
 void addToErrorLog(java.lang.String msg)
          adds the message to the error log
 Message createMessage(java.lang.String request)
          creates a new Message with the IP and Port of the server and with the given Request
 void run()
          performs the processing
 
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
 

Constructor Detail

Processor

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

Method Detail

addToErrorLog

public void addToErrorLog(java.lang.String msg)
adds the message to the error log


addToAccessLog

public void addToAccessLog(java.lang.String msg)
adds the message to the access log


createMessage

public Message createMessage(java.lang.String request)
creates a new Message with the IP and Port of the server and with the given Request


run

public void run()
performs the processing

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