Module com.slytechs.jnet.jnetpcap
Class CaptureStatisticsImpl
java.lang.Object
com.slytechs.jnet.jnetpcap.internal.CaptureStatisticsImpl
- All Implemented Interfaces:
CaptureStatistics
The Class CaptureStatisticsImpl.
- Author:
- Sly Technologies Inc, repos@slytechs.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the dropped caplen count.longGets the dropped packet count.longGets the dropped wirelen count.longGets the received caplen count.longGets the received packet count.longGets the received wirelen count.voidincDropped(int caplen, int wirelen, int packets) Inc dropped.voidincDroppedCaplenCount(long delta) Inc dropped caplen count.voidincDroppedPacketCount(long delta) Inc dropped packet count.voidincDroppedWirelenCount(long delta) Inc dropped wirelen count.voidincReceived(int caplen, int wirelen, int packets) Inc received.voidincReceivedCaplenCount(long delta) Inc received caplen count.voidincReceivedPacketCount(long delta) Inc received packet count.voidincReceivedWirelenCount(long delta) Inc received wirelen count.
-
Constructor Details
-
CaptureStatisticsImpl
public CaptureStatisticsImpl()Instantiates a new capture statistics impl.
-
-
Method Details
-
getDroppedCaplenCount
public long getDroppedCaplenCount()Gets the dropped caplen count.- Specified by:
getDroppedCaplenCountin interfaceCaptureStatistics- Returns:
- the dropped caplen count
- See Also:
-
getDroppedPacketCount
public long getDroppedPacketCount()Gets the dropped packet count.- Specified by:
getDroppedPacketCountin interfaceCaptureStatistics- Returns:
- the dropped packet count
- See Also:
-
getDroppedWirelenCount
public long getDroppedWirelenCount()Gets the dropped wirelen count.- Specified by:
getDroppedWirelenCountin interfaceCaptureStatistics- Returns:
- the dropped wirelen count
- See Also:
-
getReceivedCaplenCount
public long getReceivedCaplenCount()Gets the received caplen count.- Specified by:
getReceivedCaplenCountin interfaceCaptureStatistics- Returns:
- the received caplen count
- See Also:
-
getReceivedPacketCount
public long getReceivedPacketCount()Gets the received packet count.- Specified by:
getReceivedPacketCountin interfaceCaptureStatistics- Returns:
- the received packet count
- See Also:
-
getReceivedWirelenCount
public long getReceivedWirelenCount()Gets the received wirelen count.- Specified by:
getReceivedWirelenCountin interfaceCaptureStatistics- Returns:
- the received wirelen count
- See Also:
-
incDroppedCaplenCount
public void incDroppedCaplenCount(long delta) Inc dropped caplen count.- Parameters:
delta- the droppedCaplenCount to inc
-
incDroppedPacketCount
public void incDroppedPacketCount(long delta) Inc dropped packet count.- Parameters:
delta- the droppedPacketCount to inc
-
incDroppedWirelenCount
public void incDroppedWirelenCount(long delta) Inc dropped wirelen count.- Parameters:
delta- the droppedWirelenCount to inc
-
incReceivedCaplenCount
public void incReceivedCaplenCount(long delta) Inc received caplen count.- Parameters:
delta- the receivedCaplenCount to inc
-
incReceivedPacketCount
public void incReceivedPacketCount(long delta) Inc received packet count.- Parameters:
delta- the receivedPacketCount to inc
-
incReceivedWirelenCount
public void incReceivedWirelenCount(long delta) Inc received wirelen count.- Parameters:
delta- the receivedWirelenCount to inc
-
incDropped
public void incDropped(int caplen, int wirelen, int packets) Inc dropped.- Parameters:
caplen- the caplenwirelen- the wirelenpackets- the packets
-
incReceived
public void incReceived(int caplen, int wirelen, int packets) Inc received.- Parameters:
caplen- the caplenwirelen- the wirelenpackets- the packets
-