|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.NetFlow.NetFlow
This is an ABSTRACT class that only includs few implemented functions that would be helpful to most kinds of netflows.
| Field Summary | |
NetFlow |
next
next pointer |
| Constructor Summary | |
NetFlow()
|
|
| Method Summary | |
abstract boolean |
acceptPacket(ProtocolMessage packet)
check whether the given packet belongs to this flow since we may have different standards (resolution) of flows, this is an abstract method here |
void |
dumpBinaryOut(java.io.DataOutputStream outStream)
Dump the flow to a stream |
abstract byte[] |
dumpToBytes()
Generate a byte array from this record. |
abstract java.lang.Long |
makeKey()
construct a key for this flow that can be used as hash key. |
void |
readBinaryIn(java.io.DataInputStream inStream)
read data from a binary stream |
abstract void |
readFromBytes(byte[] bytes,
int len)
extract the record information from a byte array |
int |
recordSize()
recordSize the "next" field is NOT included when count the size of the record. |
NetFlow |
removeFlow(NetFlow flow)
remove the give flow from the list with this flow as the head return the rest of the list |
abstract void |
update(ProtocolMessage packet,
float curTime)
update the flow for the given packet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public NetFlow next
| Constructor Detail |
public NetFlow()
| Method Detail |
public abstract byte[] dumpToBytes()
public abstract void readFromBytes(byte[] bytes,
int len)
bytes - the byte array that stores the datalen - the length of the data stored in the array (Not the length of the array)public void dumpBinaryOut(java.io.DataOutputStream outStream)
outStream - the outputStream into which the data is dumped.public void readBinaryIn(java.io.DataInputStream inStream)
public abstract java.lang.Long makeKey()
public NetFlow removeFlow(NetFlow flow)
public int recordSize()
public abstract boolean acceptPacket(ProtocolMessage packet)
packet - the packet to be checked.
public abstract void update(ProtocolMessage packet,
float curTime)
packet - given packetcurTime - the current time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||