net.fenyo.gnetwatch.data
Class EventBytesExchanged
java.lang.Object
net.fenyo.gnetwatch.data.EventGeneric
net.fenyo.gnetwatch.data.EventBytesExchanged
- Direct Known Subclasses:
- EventBytesReceived, EventBytesSent
public class EventBytesExchanged
- extends EventGeneric
Events of type EventsBytesExchanged store the amount of data exchanged
during the period between the last event and this one.
- Version:
- $Id: EventBytesExchanged.java,v 1.13 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
bytes_exchanged
private long bytes_exchanged
EventBytesExchanged
public EventBytesExchanged(long bytes_exchanged)
- Constructor.
- Parameters:
bytes_exchanged - bytes exchanged during the period between the last event and this one.
EventBytesExchanged
public EventBytesExchanged()
- 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
getBytesExchanged
public long getBytesExchanged()
- Returns the numeric value stored with this event.
- Parameters:
none. -
- Returns:
- long numeric value.
setBytesExchanged
public void setBytesExchanged(long bytes_exchanged)