SSF.OS.NetFlow
Class IpFlowCollectorWD
java.lang.Object
|
+--SSF.OS.NetFlow.IpFlowCollector
|
+--SSF.OS.NetFlow.IpFlowCollectorWD
- All Implemented Interfaces:
- ProtocolMonitor
- public class IpFlowCollectorWD
- extends IpFlowCollector
IpFlowCollector With Domain-support
|
Field Summary |
int |
level
|
protected java.util.Hashtable |
nicTable
table to store NIC type information |
protected int |
nicTableSize
|
| Fields inherited from class SSF.OS.NetFlow.IpFlowCollector |
ALL_PROTOCOLS, checkTableTimer, conFinishList, conOpenTable, dataTypeCode, debug, dstMask, dumpTimer, hostCode, initCapacity, ipSess, LOCAL, nicClass, protocol_type, protocolMsgTypeClass, srcMask, STREAM_TYPE |
|
Method Summary |
void |
config(IP ipSession,
com.renesys.raceway.DML.Configuration cfg)
All options as in IpFlowCollector. |
void |
init()
It assumes that the host doesn't have a large number of NIC attacked. |
void |
receive(ProtocolMessage packet,
ProtocolSession fromSession,
ProtocolSession toSession)
Same as in IpFlowCollector except it uses IpNetFlowWD. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
level
public int level
nicTable
protected java.util.Hashtable nicTable
- table to store NIC type information
nicTableSize
protected int nicTableSize
IpFlowCollectorWD
public IpFlowCollectorWD()
config
public void config(IP ipSession,
com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
- All options as in IpFlowCollector. Plus:
- level -- how many "level" of nhi addresses is used to represent a domain.
- nic_table_size -- initial size of the NIC table.
com.renesys.raceway.DML.configException
init
public void init()
- It assumes that the host doesn't have a large number of NIC attacked.
Otherwise, the performance will not be good because of the small size
of the nicTable..
- Specified by:
init in interface ProtocolMonitor- Overrides:
init in class IpFlowCollector
receive
public void receive(ProtocolMessage packet,
ProtocolSession fromSession,
ProtocolSession toSession)
- Same as in IpFlowCollector except it uses IpNetFlowWD.
- Specified by:
receive in interface ProtocolMonitor- Overrides:
receive in class IpFlowCollector
- Parameters:
packet - received ipPacketfromSession - the Protocol session from which this packet is received.toSession - the Protocol session to which this packet will be pushed to.