Class CaptureStatisticsImpl

java.lang.Object
com.slytechs.jnet.jnetpcap.internal.CaptureStatisticsImpl
All Implemented Interfaces:
CaptureStatistics

public class CaptureStatisticsImpl extends Object implements CaptureStatistics
The Class CaptureStatisticsImpl.
Author:
Sly Technologies Inc, repos@slytechs.com
  • Constructor Details

    • CaptureStatisticsImpl

      public CaptureStatisticsImpl()
      Instantiates a new capture statistics impl.
  • Method Details

    • getDroppedCaplenCount

      public long getDroppedCaplenCount()
      Gets the dropped caplen count.
      Specified by:
      getDroppedCaplenCount in interface CaptureStatistics
      Returns:
      the dropped caplen count
      See Also:
    • getDroppedPacketCount

      public long getDroppedPacketCount()
      Gets the dropped packet count.
      Specified by:
      getDroppedPacketCount in interface CaptureStatistics
      Returns:
      the dropped packet count
      See Also:
    • getDroppedWirelenCount

      public long getDroppedWirelenCount()
      Gets the dropped wirelen count.
      Specified by:
      getDroppedWirelenCount in interface CaptureStatistics
      Returns:
      the dropped wirelen count
      See Also:
    • getReceivedCaplenCount

      public long getReceivedCaplenCount()
      Gets the received caplen count.
      Specified by:
      getReceivedCaplenCount in interface CaptureStatistics
      Returns:
      the received caplen count
      See Also:
    • getReceivedPacketCount

      public long getReceivedPacketCount()
      Gets the received packet count.
      Specified by:
      getReceivedPacketCount in interface CaptureStatistics
      Returns:
      the received packet count
      See Also:
    • getReceivedWirelenCount

      public long getReceivedWirelenCount()
      Gets the received wirelen count.
      Specified by:
      getReceivedWirelenCount in interface CaptureStatistics
      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 caplen
      wirelen - the wirelen
      packets - the packets
    • incReceived

      public void incReceived(int caplen, int wirelen, int packets)
      Inc received.
      Parameters:
      caplen - the caplen
      wirelen - the wirelen
      packets - the packets