net.clackrouter.component.extension
Class TCPMonitor.TCPFlow

java.lang.Object
  extended by net.clackrouter.component.extension.TCPMonitor.TCPFlow
Enclosing class:
TCPMonitor

public class TCPMonitor.TCPFlow
extends java.lang.Object

Helper class to contain all information about a single TCP flow.

Relies on the TCPStateAnalyzer class.


Field Summary
 java.util.ArrayList listeners
          List of classes implementing TCPMonitor.TCPFlowListener and interested in this flow
 TCPStateAnalyzer mStateA
          Represents the state for either TCP connection end-point
 TCPStateAnalyzer mStateB
          Represents the state for either TCP connection end-point
 long startTime
           
 long updated
           
 
Constructor Summary
TCPMonitor.TCPFlow(java.net.InetAddress a_addr, int a_port, java.net.InetAddress b_addr, int b_port)
           
 
Method Summary
 void fireListeners()
           
 TCPStateAnalyzer getOtherTCPStateAnalyzer(TCPStateAnalyzer me)
          Return the TCPStateAnalyzer object in this pair that is not the one passed in
 void registerListener(TCPMonitor.TCPFlowListener l)
           
 void updateFlow(VNSTCPPacket tcppacket)
          Main method, used to update the TCPStateAnalyzers with information from a new packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mStateA

public TCPStateAnalyzer mStateA
Represents the state for either TCP connection end-point


mStateB

public TCPStateAnalyzer mStateB
Represents the state for either TCP connection end-point


listeners

public java.util.ArrayList listeners
List of classes implementing TCPMonitor.TCPFlowListener and interested in this flow


startTime

public long startTime

updated

public long updated
Constructor Detail

TCPMonitor.TCPFlow

public TCPMonitor.TCPFlow(java.net.InetAddress a_addr,
                          int a_port,
                          java.net.InetAddress b_addr,
                          int b_port)
Method Detail

getOtherTCPStateAnalyzer

public TCPStateAnalyzer getOtherTCPStateAnalyzer(TCPStateAnalyzer me)
Return the TCPStateAnalyzer object in this pair that is not the one passed in


updateFlow

public void updateFlow(VNSTCPPacket tcppacket)
Main method, used to update the TCPStateAnalyzers with information from a new packet.


registerListener

public void registerListener(TCPMonitor.TCPFlowListener l)

fireListeners

public void fireListeners()