SSF.OS.NetFlow.Util
Class IpFlowSortor
java.lang.Object
|
+--SSF.Util.Streams.BasicPlayer
|
+--SSF.OS.NetFlow.Util.IpFlowSortor
- All Implemented Interfaces:
- StreamInterface
- public class IpFlowSortor
- extends BasicPlayer
Test driver of IpFlowReporter.
Small utility that prints out the content of a netflow data file.
usage: JAVA Report <filename> <stream name>
|
Method Summary |
static void |
main(java.lang.String[] args)
read in the records, sort them according to "First" field and print out. |
int |
receive(int tid,
int sid,
double time,
byte[] buf,
int offset,
int length)
Grab an IpFlowCollector record and insert it into a vector |
| Methods inherited from class SSF.Util.Streams.BasicPlayer |
connectRead, connectWrite, disconnect, getRecordCount, getRecordSourceCode, getRecordSourceString, getRecordTypeCode, getRecordTypeString, isConnected, send, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IpFlowSortor
public IpFlowSortor(java.lang.String streamID)
receive
public int receive(int tid,
int sid,
double time,
byte[] buf,
int offset,
int length)
- Grab an IpFlowCollector record and insert it into a vector
- Specified by:
receive in interface StreamInterface- Overrides:
receive in class BasicPlayer
- Parameters:
tid - type ID or the recordsid - ID corresponding to source NHI addresstime - timestamp when it's dumpedbuf - byte array storing the dataoffset - where in the byte array to startlength - how long are the data in the array
main
public static void main(java.lang.String[] args)
- read in the records, sort them according to "First" field and print out.