SSF.App.DDoS
Class CD_DDoSTracer

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

public class CD_DDoSTracer
extends BasicPlayer

Cross Domain DDoS Tracer


Field Summary
protected  java.util.Hashtable egressTable
          store inforamtion of related egress traffic
protected  float endTime
          end time
protected  java.util.Hashtable ingressTable
          store information of related ingress traffic
static int SET_QUERY_FAIL
          some constants
static int SET_QUERY_SUCC
           
protected  float startTime
          start time
protected  int targetIP
          the target IP address
 
Constructor Summary
CD_DDoSTracer(java.lang.String streamID)
           
 
Method Summary
 java.util.Enumeration egressInfo()
           
 java.util.Enumeration ingressInfo()
           
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.
 void reset()
          reset all the statistic values, clear the tables.
 int setQuery(int targetIP, 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

ingressTable

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


egressTable

protected java.util.Hashtable egressTable
store inforamtion of related egress traffic


targetIP

protected int targetIP
the target IP address


startTime

protected float startTime
start time


endTime

protected float endTime
end time

Constructor Detail

CD_DDoSTracer

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

reset

public void reset()
reset all the statistic values, clear the tables.


setQuery

public int setQuery(int targetIP,
                    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

printSummary

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


main

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

ingressInfo

public java.util.Enumeration ingressInfo()

egressInfo

public java.util.Enumeration egressInfo()