net.fenyo.gnetwatch.data
Class EventHTTPPages
java.lang.Object
net.fenyo.gnetwatch.data.EventGeneric
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static Log log
pages_received
private long pages_received
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. -
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)