Class PiCounterCell

  • All Implemented Interfaces:
    PiEntity

    @Beta
    public final class PiCounterCell
    extends Object
    implements PiEntity
    Counter cell of a protocol-independent pipeline.
    • Constructor Detail

      • PiCounterCell

        public PiCounterCell​(PiCounterCellId cellId,
                             PiCounterCellData piCounterCellData)
        Creates a new counter cell for the given cell identifier and counter cell data.
        Parameters:
        cellId - counter cell identifier
        piCounterCellData - counter cell data
      • PiCounterCell

        public PiCounterCell​(PiCounterCellId cellId,
                             long packets,
                             long bytes)
        Creates a new counter cell for the given cell identifier, number of packets and bytes.
        Parameters:
        cellId - counter cell identifier
        packets - number of packets
        bytes - number of bytes
    • Method Detail

      • cellId

        public PiCounterCellId cellId()
        Returns the cell identifier.
        Returns:
        cell identifier
      • data

        public PiCounterCellData data()
        Returns the data contained by this cell.
        Returns:
        counter cell data
      • piEntityType

        public PiEntityType piEntityType()
        Description copied from interface: PiEntity
        Returns the type of this entity.
        Specified by:
        piEntityType in interface PiEntity
        Returns:
        entity type
      • handle

        public PiCounterCellHandle handle​(DeviceId deviceId)
        Description copied from interface: PiEntity
        Returns a handle for this PI entity and the given device ID.
        Specified by:
        handle in interface PiEntity
        Parameters:
        deviceId - device ID
        Returns:
        handle
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object