net.fenyo.gnetwatch.data
Class EventFlood

java.lang.Object
  extended by net.fenyo.gnetwatch.data.EventGeneric
      extended by net.fenyo.gnetwatch.data.EventFlood

public class EventFlood
extends EventGeneric

Events of type EventFlood store the amount of data flooded to a target during the period between the last event and this one.

Version:
$Id: EventFlood.java,v 1.12 2008/04/26 22:38:34 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  long bytes_sent
           
private  long cache_operand_1
           
private  long cache_operand_2
           
private  int cache_result
           
private static Log log
           
 
Constructor Summary
EventFlood()
          Default constructor.
EventFlood(long bytes_sent)
          Constructor.
 
Method Summary
 long getBytesSent()
          Returns the numeric value stored with this event.
 int getIntValue()
          Returns the throughput in bit/s at the moment of this event.
 void setBytesSent(long bytes_sent)
           
 void setIntValue(int value)
           
 
Methods inherited from class net.fenyo.gnetwatch.data.EventGeneric
getDate, getEventList, getId, setDate, setEventList, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

bytes_sent

private long bytes_sent

cache_operand_1

private long cache_operand_1

cache_operand_2

private long cache_operand_2

cache_result

private int cache_result
Constructor Detail

EventFlood

public EventFlood(long bytes_sent)
Constructor.

Parameters:
bytes_sent - bytes flooded during the period between the last event and this one.

EventFlood

public EventFlood()
Default constructor.

Parameters:
none. -
Method Detail

getIntValue

public int getIntValue()
Returns the throughput in bit/s at the moment of this event.

Overrides:
getIntValue in class EventGeneric
Returns:
int throughput.

setIntValue

public void setIntValue(int value)
Overrides:
setIntValue in class EventGeneric

getBytesSent

public long getBytesSent()
Returns the numeric value stored with this event.

Parameters:
none. -
Returns:
long numeric value.

setBytesSent

public void setBytesSent(long bytes_sent)