Class PiMeterCellConfig

  • All Implemented Interfaces:
    PiEntity

    @Beta
    public final class PiMeterCellConfig
    extends Object
    implements PiEntity
    Configuration of a meter cell of a protocol-independent pipeline.
    • Method Detail

      • cellId

        public PiMeterCellId cellId()
        Returns the cell identifier.
        Returns:
        cell identifier
      • isModifyConfig

        public boolean isModifyConfig()
        Check if the config represents a modify operation. Or it is a non-default config read from south bound.
        Returns:
        true if there are exactly 2 bands
      • isDefaultConfig

        public boolean isDefaultConfig()
        Check if the config represents a reset operation. Or it is a default config read from south bound.
        Returns:
        true if there is no band
      • committedBand

        public PiMeterBand committedBand()
        Returns the committed configuration if present.
        Returns:
        the committed band. Null otherwise
      • peakBand

        public PiMeterBand peakBand()
        Returns the peak configuration if present.
        Returns:
        the peak band. Null otherwise
      • reset

        public static PiMeterCellConfig reset​(PiMeterCellId piMeterCellId)
        Returns a PiMeterCellConfig with no bands. Used to reset a PI meter cell.
        Parameters:
        piMeterCellId - the PiMeterCellId need to be reset
        Returns:
        a PiMeterCellConfig with no bands
      • 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 PiMeterCellHandle 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
      • builder

        public static PiMeterCellConfig.Builder builder()
        Returns a meter cell configuration builder.
        Returns:
        a new builder