Class PolicerId


  • @Beta
    public final class PolicerId
    extends Identifier<String>
    Unique identifier for an ONOS Policer Policer. It uniquely identifies a Policer in the scope of a single device inside ONOS. There may not be any correspondence with the identifiers of the technology implementing the Policer in the device. Mapping (if necessary) is left to the specific implementation.
    • Field Detail

      • NONE

        public static final PolicerId NONE
        Represents either no id, or an unspecified id.
    • Method Detail

      • policerId

        public static PolicerId policerId​(URI uri)
        Creates a policer id using the supplied URI.
        Parameters:
        uri - policer id URI
        Returns:
        PolicerId
      • policerId

        public static PolicerId policerId​(String string)
        Creates a policer id using the supplied URI string.
        Parameters:
        string - policer id URI string
        Returns:
        PolicerID
      • uri

        public URI uri()
        Returns the backing URI.
        Returns:
        backing URI