SSF.OS.NetFlow.Util
Class IpFlowReporter
java.lang.Object
|
+--SSF.Util.Streams.BasicPlayer
|
+--SSF.OS.NetFlow.Util.IpFlowReporter
- All Implemented Interfaces:
- StreamInterface
- public class IpFlowReporter
- extends BasicPlayer
This class reads the binary netflow data from a file
and print it out
|
Method Summary |
static void |
main(java.lang.String[] args)
|
int |
receive(int tid,
int sid,
double time,
byte[] buf,
int offset,
int length)
Grab an IpFlowCollector record and print it on screen |
| 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 |
IpFlowReporter
public IpFlowReporter(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 print it on screen
- 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)