net.fenyo.gnetwatch.data
Class EventBytesExchanged

java.lang.Object
  extended by net.fenyo.gnetwatch.data.EventGeneric
      extended by 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

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

private long bytes_exchanged
Constructor Detail

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. -
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

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)