Class PolicerId


  • @Beta
    public final class PolicerId
    extends org.onlab.util.Identifier<java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      static PolicerId NONE
      Represents either no id, or an unspecified id.
      • Fields inherited from class org.onlab.util.Identifier

        identifier
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PolicerId policerId​(java.lang.String string)
      Creates a policer id using the supplied URI string.
      static PolicerId policerId​(java.net.URI uri)
      Creates a policer id using the supplied URI.
      java.net.URI uri()
      Returns the backing URI.
      • Methods inherited from class org.onlab.util.Identifier

        equals, hashCode, id, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • NONE

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

      • policerId

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

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

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