isc.sensor
Class UDPSessionTimer

java.lang.Object
  extended by java.lang.Thread
      extended by isc.sensor.SessionTimer
          extended by isc.sensor.UDPSessionTimer
All Implemented Interfaces:
java.lang.Runnable

public class UDPSessionTimer
extends SessionTimer

The UDP Session Timers runs in a background thread a periodically check each session for it's close state

Author:
John Casey
Project: DNA_sensor - Aug 12, 2005

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected static java.lang.String PROP_SESTIMER_SESTIMOUT
          Property to specify how long to timeout a session that has not seen any new packets
protected static java.lang.String PROP_SESTIMER_SLEEP
          Property to specify how long to sleep on each iteration to check for closed sessions
protected  UDPSessionProcessor udpSesProcessor
          The Session Processor that this timer is working for
 
Fields inherited from class isc.sensor.SessionTimer
finish, log, packetTime, props, sleepTime, timeOut
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UDPSessionTimer(UDPSessionProcessor sp)
          Create a new UDP Session Timer in a new thread
 
Method Summary
 void run()
           
 
Methods inherited from class isc.sensor.SessionTimer
finished, getPacketTime, notifyProc, setFinish, setPacketTime, waitProc
 
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
 

Field Detail

udpSesProcessor

protected UDPSessionProcessor udpSesProcessor
The Session Processor that this timer is working for


PROP_SESTIMER_SLEEP

protected static final java.lang.String PROP_SESTIMER_SLEEP
Property to specify how long to sleep on each iteration to check for closed sessions

See Also:
Constant Field Values

PROP_SESTIMER_SESTIMOUT

protected static final java.lang.String PROP_SESTIMER_SESTIMOUT
Property to specify how long to timeout a session that has not seen any new packets

See Also:
Constant Field Values
Constructor Detail

UDPSessionTimer

public UDPSessionTimer(UDPSessionProcessor sp)
Create a new UDP Session Timer in a new thread

Parameters:
sp - The Session processor managing this timer
Method Detail

run

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