|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
isc.sensor.SessionTimer
public class SessionTimer
The Session Timers (TCP/UDP) runs in a background thread a periodically check each session for it's close state
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected boolean |
finish
Flag to determine when server is exiting |
protected static org.apache.log4j.Logger |
log
log4j |
protected long |
packetTime
Current packet clock time |
protected AppProperties |
props
Application properties |
protected long |
sleepTime
sleep loop time |
protected long |
timeOut
Time period to close sessions that haven't seen any more packets |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SessionTimer()
|
Method Summary | |
---|---|
boolean |
finished()
Check if the process is in exiting state |
long |
getPacketTime()
Get the current packet clock time |
void |
notifyProc()
Notify the sleeping thread of an event |
void |
setFinish()
Signal to the end of process and finish all work |
void |
setPacketTime(long ptime)
Set the packet time clock to current packet |
protected void |
waitProc()
Wait on mutex and timeout |
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, run, 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 |
---|
protected long sleepTime
protected long timeOut
protected volatile boolean finish
protected volatile long packetTime
protected AppProperties props
protected static org.apache.log4j.Logger log
Constructor Detail |
---|
public SessionTimer()
Method Detail |
---|
public void setPacketTime(long ptime)
ptime
- The packet time in millisecondspublic long getPacketTime()
protected void waitProc()
public void setFinish()
public boolean finished()
public void notifyProc()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |