isc.sensor.parser
Class AbstractParser.ParserState

java.lang.Object
  extended by isc.sensor.parser.AbstractParser.ParserState
Enclosing class:
AbstractParser

public class AbstractParser.ParserState
extends java.lang.Object

This structue is used by the ParserMain to manage the complicated state of each session within the threaded envirmonment for the Parsers. Algorythm: A packet cannot be written out unless all of the packet that have been queued, have been processed and the packet has been closed (flushed) state by the session processors.

Author:
John Casey
  • DNA_sensor - Aug 12, 2005

  • Field Summary
     java.lang.String Key
              The key for this session
     int packetsProcessed
              Number of packets processed for the session.
     int packetsQueued
              Number of packets queue for processing of the session
     boolean sessionflushed
              State flag to determine when this session was flushed (closed state by the session processors)
     
    Constructor Summary
    AbstractParser.ParserState()
              Create a new state for a new session.
     
    Method Summary
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    Key

    public java.lang.String Key
    The key for this session


    sessionflushed

    public boolean sessionflushed
    State flag to determine when this session was flushed (closed state by the session processors)


    packetsQueued

    public int packetsQueued
    Number of packets queue for processing of the session


    packetsProcessed

    public int packetsProcessed
    Number of packets processed for the session.

    Constructor Detail

    AbstractParser.ParserState

    public AbstractParser.ParserState()
    Create a new state for a new session.