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>


Constructor Summary
IpFlowSortor(java.lang.String streamID)
           
 
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
 

Constructor Detail

IpFlowSortor

public IpFlowSortor(java.lang.String streamID)
Method Detail

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 record
sid - ID corresponding to source NHI address
time - timestamp when it's dumped
buf - byte array storing the data
offset - where in the byte array to start
length - 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.