net.fenyo.gnetwatch.data
Class EventHTTP

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

public class EventHTTP
extends EventGeneric

Events of type EventHTTP store the amount of data received from a HTTP/FTP server during the period between the last event and this one.

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

Field Summary
private  long bytes_received
           
private static Log log
           
 
Constructor Summary
EventHTTP()
          Default constructor.
EventHTTP(long bytes_received)
          Constructor.
 
Method Summary
 long getBytesReceived()
          Returns the numeric value stored with this event.
 int getIntValue()
          Returns the throughput in bit/s at the moment of this event.
 void setBytesReceived(long bytes_received)
           
 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_received

private long bytes_received
Constructor Detail

EventHTTP

public EventHTTP(long bytes_received)
Constructor.

Parameters:
bytes_received - bytes received during the period between the last event and this one.

EventHTTP

public EventHTTP()
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

getBytesReceived

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

Parameters:
none. -
Returns:
long numeric value.

setBytesReceived

public void setBytesReceived(long bytes_received)