|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
isc.sensor.SessionProcessor
isc.sensor.UDPSessionProcessor
public class UDPSessionProcessor
The UDP Session processor manage the full lifecycle for each tcp session, defined by a client/port server/port pair. The Session Processor runs in its own thread
TODO:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
log
log4j |
protected static java.lang.String |
PROP_DBSIZE
Property to specify the initial size of the inflight packet flow hashtable |
protected static java.lang.String |
PROP_SESHASH_SIZE
Property to specify the initial size of the active session hash table |
protected static java.lang.String |
PROP_SESSION_OUTPUT
Property to enable/disable session output |
protected static java.lang.String |
PROP_WORKQ_SIZE
Property to specify the initial size of the packet work queue |
protected static java.lang.String[] |
SVCNAMES
Array of well-know services |
protected static int[] |
SVCNUMS
Array of well-known service ports |
Fields inherited from class isc.sensor.SessionProcessor |
---|
currentPacketTime, dbh, finish, packetDB, PROP_OUTPUTWRITERCLASS, props, sessions, sesTimer, sesWorkQueue, workItem, writeSession |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
UDPSessionProcessor()
Create a new UDP Session processor, internally controlled Thread |
|
UDPSessionProcessor(boolean startThread)
Create a new UDP Session processor, stub for a subclass to manage the initialization of the thread |
Method Summary | |
---|---|
void |
addPacket(UDPBean udpbean)
Add a packet to be process into a session |
protected void |
flush(SessionBean udpsbean)
Flush/write out a completed UDP Session |
protected void |
init(boolean startThread,
boolean writeSession)
Initialize this session processor from this class or a subclass. |
void |
insertBeanDB(UDPBean bean)
Add a packet to the current session's packet summary DB |
protected void |
processWorkItem()
Process the sesWorkQueue containing completed sessions @see SessionProcessor#addCompletedSession(String) |
Methods inherited from class isc.sensor.SessionProcessor |
---|
addCompletedSession, close, finished, getActiveSessions, getSessionPackets, notifyProc, open, run, setFinish, updatePacketClock, 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 |
---|
protected static final int[] SVCNUMS
protected static final java.lang.String[] SVCNAMES
protected static final java.lang.String PROP_SESSION_OUTPUT
protected static final java.lang.String PROP_WORKQ_SIZE
protected static final java.lang.String PROP_SESHASH_SIZE
protected static final java.lang.String PROP_DBSIZE
protected static org.apache.log4j.Logger log
Constructor Detail |
---|
public UDPSessionProcessor()
public UDPSessionProcessor(boolean startThread)
startThread
- unusedMethod Detail |
---|
protected void init(boolean startThread, boolean writeSession)
startThread
- True to start the thread internally, False to start/manage the thread from a subclasswriteSession
- True to write out the session record, False to disablepublic void insertBeanDB(UDPBean bean) throws java.lang.Exception
bean
- The UDPBean to add
java.lang.Exception
protected void processWorkItem()
processWorkItem
in class SessionProcessor
public void addPacket(UDPBean udpbean)
udpbean
- The UDPBean to be processedprotected void flush(SessionBean udpsbean)
udpsbean
- The UDPSession to flush
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |