isc.sensor
Class TCPSessionTimer

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

public class TCPSessionTimer
extends SessionTimer

The TCP 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  long closeTime
          Time to wait after a TCP session has entered a close state
protected  long FINtimeOut
          Time to wait to close after a FIN has been seen
protected static java.lang.String PROP_CLOSE_TIME
          Property the specify time to wait after a TCP session has closed
protected static java.lang.String PROP_FIN_TIMEOUT
          Property to specify tim to wait after FIN has been seen
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  TCPSessionProcessor tcpSesProcessor
          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
TCPSessionTimer(TCPSessionProcessor sp)
          Create a new TCP 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

closeTime

protected long closeTime
Time to wait after a TCP session has entered a close state


FINtimeOut

protected long FINtimeOut
Time to wait to close after a FIN has been seen


tcpSesProcessor

protected TCPSessionProcessor tcpSesProcessor
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

PROP_CLOSE_TIME

protected static final java.lang.String PROP_CLOSE_TIME
Property the specify time to wait after a TCP session has closed

See Also:
Constant Field Values

PROP_FIN_TIMEOUT

protected static final java.lang.String PROP_FIN_TIMEOUT
Property to specify tim to wait after FIN has been seen

See Also:
Constant Field Values
Constructor Detail

TCPSessionTimer

public TCPSessionTimer(TCPSessionProcessor sp)
Create a new TCP 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