Class PortNextObjectiveStoreKey


  • public class PortNextObjectiveStoreKey
    extends Object
    Key of Device/Port to NextObjective store. Since there can be multiple next objectives to the same physical port, we differentiate between them by including the treatment in the key.
    • Constructor Summary

      Constructors 
      Constructor Description
      PortNextObjectiveStoreKey​(org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNum, org.onosproject.net.flow.TrafficTreatment treatment, org.onosproject.net.flow.TrafficSelector meta)
      Constructs the key of port next objective store.
    • Constructor Detail

      • PortNextObjectiveStoreKey

        public PortNextObjectiveStoreKey​(org.onosproject.net.DeviceId deviceId,
                                         org.onosproject.net.PortNumber portNum,
                                         org.onosproject.net.flow.TrafficTreatment treatment,
                                         org.onosproject.net.flow.TrafficSelector meta)
        Constructs the key of port next objective store.
        Parameters:
        deviceId - device ID
        portNum - port number
        treatment - treatment that will be applied to the interface
        meta - optional data to pass to the driver
    • Method Detail

      • deviceId

        public org.onosproject.net.DeviceId deviceId()
        Gets device id in this PortNextObjectiveStoreKey.
        Returns:
        device id
      • portNumber

        public org.onosproject.net.PortNumber portNumber()
        Gets port information in this PortNextObjectiveStoreKey.
        Returns:
        port information
      • treatment

        public org.onosproject.net.flow.TrafficTreatment treatment()
        Gets treatment information in this PortNextObjectiveStoreKey.
        Returns:
        treatment information
      • meta

        public org.onosproject.net.flow.TrafficSelector meta()
        Gets metadata information in this PortNextObjectiveStoreKey.
        Returns:
        meta information
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object