SSF.App.DDoS
Class DDoSMonitor

java.lang.Object
  |
  +--SSF.App.DDoS.DDoSMonitor
All Implemented Interfaces:
ProtocolMonitor

public class DDoSMonitor
extends java.lang.Object
implements ProtocolMonitor

Used to monitor the process of DDoS hosts, generating data used in animation (demo).


Field Summary
 boolean DEBUG
           
protected  DDoSSessionRand owner
           
static java.lang.String STREAM_TYPE
           
 
Constructor Summary
DDoSMonitor()
           
 
Method Summary
 void config(ProtocolSession ownerProtocol, com.renesys.raceway.DML.Configuration cfg)
          configure the Monitor.
 void init()
          called by SSF.OS.DDoS.DDoSSessionRand.init()
 void receive(ProtocolMessage msg, ProtocolSession fromSession, ProtocolSession toSession)
          Peek at every protocol message push()ed into the monitored protocol session.
static java.lang.String recordToString(byte[] bytes, int offset)
           
protected  void sendRecord(DDoSMessage msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREAM_TYPE

public static final java.lang.String STREAM_TYPE
See Also:
Constant Field Values

owner

protected DDoSSessionRand owner

DEBUG

public boolean DEBUG
Constructor Detail

DDoSMonitor

public DDoSMonitor()
Method Detail

config

public void config(ProtocolSession ownerProtocol,
                   com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
configure the Monitor. The supported DML attributes are:
   monitor [
     use SSF.OS.DDoS.DDoSMonitor
     debug           %S   # print verbose diagnostics, true/false
   ]
 

Specified by:
config in interface ProtocolMonitor
com.renesys.raceway.DML.configException

init

public void init()
called by SSF.OS.DDoS.DDoSSessionRand.init()

Specified by:
init in interface ProtocolMonitor

sendRecord

protected void sendRecord(DDoSMessage msg)

recordToString

public static java.lang.String recordToString(byte[] bytes,
                                              int offset)

receive

public void receive(ProtocolMessage msg,
                    ProtocolSession fromSession,
                    ProtocolSession toSession)
Description copied from interface: ProtocolMonitor
Peek at every protocol message push()ed into the monitored protocol session.

Specified by:
receive in interface ProtocolMonitor