SourceForge Jpcap

net.sourceforge.jpcap.capture
Class StatisticsEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sourceforge.jpcap.capture.StatisticsEvent
All Implemented Interfaces:
Serializable

public class StatisticsEvent
extends EventObject

StatisticsEvent encapsulates the statistics generated by JWinPcap.CaptureMode.Statistical.

Version:
$Revision: 1.1 $
Author:
Esmond Pitt
See Also:
JWinPcap.CaptureMode.Statistical, StatisticsListener.statisticsArrived(net.sourceforge.jpcap.capture.StatisticsEvent), JWinPcap.addStatisticsListener(net.sourceforge.jpcap.capture.StatisticsListener), JWinPcap.removeStatisticsListener(net.sourceforge.jpcap.capture.StatisticsListener), Gathering Statistics on the network traffic, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 long getBytes()
          Getter for property bytes.
 long getPackets()
          Getter for property packets.
 Timeval getTimeval()
          Getter for property timeval.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class EventObject

getPackets

public long getPackets()
Getter for property packets.

Returns:
Value of property packets.

getBytes

public long getBytes()
Getter for property bytes.

Returns:
Value of property bytes.

getTimeval

public Timeval getTimeval()
Getter for property timeval.

Returns:
Value of property timeval.

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.