net.fenyo.gnetwatch.data
Class EventHTTPPages

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

public class EventHTTPPages
extends EventGeneric

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

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

Field Summary
private static Log log
           
private  long pages_received
           
 
Constructor Summary
EventHTTPPages()
          Default constructor.
EventHTTPPages(long pages_received)
          Constructor.
 
Method Summary
 int getIntValue()
          Returns the throughput in pages/s at the moment of this event.
 long getPagesReceived()
          Returns the numeric value stored with this event.
 void setIntValue(int value)
           
 void setPagesReceived(long pages_received)
           
 
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

pages_received

private long pages_received
Constructor Detail

EventHTTPPages

public EventHTTPPages(long pages_received)
Constructor.

Parameters:
pages_received - pages received during the period between the last event and this one.

EventHTTPPages

public EventHTTPPages()
Default constructor.

Parameters:
none. -
Method Detail

getIntValue

public int getIntValue()
Returns the throughput in pages/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

getPagesReceived

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

Parameters:
none. -
Returns:
long numeric value.

setPagesReceived

public void setPagesReceived(long pages_received)