- All Known Implementing Classes:
CaptureStatisticsImpl,NetPcap
public interface CaptureStatistics
The Interface CaptureStatistics.
- Author:
- Sly Technologies Inc, repos@slytechs.com
-
Method Summary
Modifier and TypeMethodDescriptionlongNumber of bytes that were dropped due to errors while receiving packets.longNumber of packets that have been dropped due to errors when receiving packets.longNumber of bytes seen on the wire that were dropped due to errors while receiving packets.longNumber of total bytes received since the start of the pcap capture.longNumber of packets received since that start of the pcap capture.longNumber of total bytes seen on the wire since the start of the pcap capture.static CaptureStatisticsNew instance.
-
Method Details
-
newInstance
New instance.- Returns:
- the capture statistics
-
getDroppedCaplenCount
long getDroppedCaplenCount()Number of bytes that were dropped due to errors while receiving packets. If byte count for any packet received and dropped is not available, the counter will not reflect that correct value.- Returns:
- 64-bit counter
-
getDroppedPacketCount
long getDroppedPacketCount()Number of packets that have been dropped due to errors when receiving packets.- Returns:
- 64-bit counter
-
getDroppedWirelenCount
long getDroppedWirelenCount()Number of bytes seen on the wire that were dropped due to errors while receiving packets. If byte count for any packet seen on wire and dropped is not available, the counter will not reflect that correct value.- Returns:
- 64-bit counter
-
getReceivedCaplenCount
long getReceivedCaplenCount()Number of total bytes received since the start of the pcap capture.- Returns:
- a 64-bit counter in units of bytes
-
getReceivedPacketCount
long getReceivedPacketCount()Number of packets received since that start of the pcap capture.- Returns:
- a 64-bit counter
-
getReceivedWirelenCount
long getReceivedWirelenCount()Number of total bytes seen on the wire since the start of the pcap capture.- Returns:
- a 64-bit counter in units of bytes
-