org.jwall.web.audit.net
Class NetworkClientWorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.jwall.web.audit.net.NetworkClientWorkerThread
All Implemented Interfaces:
java.lang.Runnable, AuditEventListener

public class NetworkClientWorkerThread
extends java.lang.Thread
implements AuditEventListener


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
NetworkClientWorkerThread(java.net.Socket sock, java.util.Properties users, NetworkEventServer serv)
           
 
Method Summary
 void checkCommand()
           
 void eventArrived(AuditEvent evt)
          This method is called when a new event arrives at the listener.
 void finalize()
           
 boolean isClosed()
           
 void run()
           
 java.lang.String toString()
           
 
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, yield
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkClientWorkerThread

public NetworkClientWorkerThread(java.net.Socket sock,
                                 java.util.Properties users,
                                 NetworkEventServer serv)
                          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

eventArrived

public void eventArrived(AuditEvent evt)
Description copied from interface: AuditEventListener
This method is called when a new event arrives at the listener. The Listener should be threaded and response-time to this method should be as small as possible. After the dispatcher calls this method each listener gets a call to notiy(), thus a listener might wait for packets to arrive.

Specified by:
eventArrived in interface AuditEventListener

isClosed

public boolean isClosed()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread

checkCommand

public void checkCommand()

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object