|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.NetFlow.IpFlowCollector
Monitor that collects flows of record type: "SSF.OS.NetFlow" Revised from IpFlowCollector, give "domain information" in flow records.
In the future, it may be used to replace IpFlowCollector completely.
| Field Summary | |
static byte |
ALL_PROTOCOLS
default value for protocol_type: all protocols |
protected Timer |
checkTableTimer
timer, check the open connection table when fired |
protected java.util.LinkedList |
conFinishList
List of finished connections |
protected IpFlowTable |
conOpenTable
table of open connections |
protected int |
dataTypeCode
the datatype code (used when sending data to stream) |
protected boolean |
debug
debug switch |
protected byte |
dstMask
the suffix desination IP mask |
protected Timer |
dumpTimer
timer, periodically dump the conFinishList to a file |
protected int |
hostCode
the host code (used when sending data to stream) |
protected int |
initCapacity
init open table capacity |
protected IP |
ipSess
the ip session it's related |
protected short |
LOCAL
|
protected java.lang.Class |
nicClass
the NIC class used to in receive function |
byte |
protocol_type
protocol interested in |
protected java.lang.Class |
protocolMsgTypeClass
used to check the type of the message, now just used for BGP |
protected byte |
srcMask
the suffix source IP mask |
static java.lang.String |
STREAM_TYPE
|
| Constructor Summary | |
IpFlowCollector()
default constructor, does nothing |
|
| Method Summary | |
void |
config(ProtocolSession ownerProtocol,
com.renesys.raceway.DML.Configuration cfg)
config the collector MUST be called before run the collector debug -- debug switch: true/false protocol_type -- the protocol that is interested. |
float |
getSimTime()
getSimTime: get the simulation time it's the same function used in tcpSessionMaster.java |
ProtocolGraph |
inGraph()
inGraph |
void |
init()
allocate memory for tables init the "theStream" recorder start the timers. |
protected boolean |
isOldConnection(NetFlow nflow,
float curTime)
judge whether this connection is long-last/inactive |
void |
receive(ProtocolMessage packet,
ProtocolSession fromSession,
ProtocolSession toSession)
receive filt the IpPacket, collect the statistical values of the interested protocol |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String STREAM_TYPE
protected boolean debug
protected IP ipSess
public static final byte ALL_PROTOCOLS
public byte protocol_type
protected IpFlowTable conOpenTable
protected int initCapacity
protected java.util.LinkedList conFinishList
protected Timer dumpTimer
protected Timer checkTableTimer
protected int dataTypeCode
protected int hostCode
protected byte srcMask
protected byte dstMask
protected java.lang.Class nicClass
protected java.lang.Class protocolMsgTypeClass
protected final short LOCAL
| Constructor Detail |
public IpFlowCollector()
| Method Detail |
public void config(ProtocolSession ownerProtocol,
com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in interface ProtocolMonitorcom.renesys.raceway.DML.configExceptionpublic void init()
init in interface ProtocolMonitor
public void receive(ProtocolMessage packet,
ProtocolSession fromSession,
ProtocolSession toSession)
receive in interface ProtocolMonitorpacket - received ipPacketfromSession - the Protocol session from which this packet is received.toSession - the Protocol session to which this packet will be pushed to.public float getSimTime()
public ProtocolGraph inGraph()
protected boolean isOldConnection(NetFlow nflow,
float curTime)
curTime - current time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||