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