SSF.App.DDoS
Class DestList_3

java.lang.Object
  |
  +--SSF.Util.Streams.BasicPlayer
        |
        +--SSF.App.DDoS.DestList_3
All Implemented Interfaces:
StreamInterface

public class DestList_3
extends BasicPlayer

Tempararily used Destination List tool in DDoS trace back. List destination IP addresses, for each pair of src/dest, it's counted only once.


Field Summary
protected  java.util.Hashtable destTable
          store information of related ingress traffic
protected  float endTime
          end time
static int SET_QUERY_FAIL
          some constants
static int SET_QUERY_SUCC
           
protected  java.util.HashSet srcDestSet
           
protected  java.util.HashSet srcIPSet
           
protected  float startTime
          start time
 
Constructor Summary
DestList_3(java.lang.String streamID)
           
 
Method Summary
 void assignSet(java.util.HashSet ipSet)
           
 void collectDest()
           
static java.util.HashSet createSet(java.lang.String srcIPFileName)
          Create a hashset from a file.
static void main(java.lang.String[] args)
           
 void printSummary()
          print out the content and a summary of ingress/egress table
 int receive(int type_code, int source_code, double timestamp, byte[] bytes, int offset, int length)
          Default handler for generic record data.
 int setQuery(float startTime, float endTime)
          This is called to set the parameters for query.
 
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
 

Field Detail

SET_QUERY_FAIL

public static final int SET_QUERY_FAIL
some constants

See Also:
Constant Field Values

SET_QUERY_SUCC

public static final int SET_QUERY_SUCC
See Also:
Constant Field Values

srcIPSet

protected java.util.HashSet srcIPSet

destTable

protected java.util.Hashtable destTable
store information of related ingress traffic


srcDestSet

protected java.util.HashSet srcDestSet

startTime

protected float startTime
start time


endTime

protected float endTime
end time

Constructor Detail

DestList_3

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

assignSet

public void assignSet(java.util.HashSet ipSet)

setQuery

public int setQuery(float startTime,
                    float endTime)
This is called to set the parameters for query.


receive

public int receive(int type_code,
                   int source_code,
                   double timestamp,
                   byte[] bytes,
                   int offset,
                   int length)
Description copied from class: BasicPlayer
Default handler for generic record data.

Specified by:
receive in interface StreamInterface
Overrides:
receive in class BasicPlayer

collectDest

public void collectDest()

printSummary

public void printSummary()
print out the content and a summary of ingress/egress table


createSet

public static java.util.HashSet createSet(java.lang.String srcIPFileName)
Create a hashset from a file. In the file, each line is an IP address.


main

public static void main(java.lang.String[] args)