Class PortNextObjectiveStoreKey
- java.lang.Object
-
- org.onosproject.segmentrouting.storekey.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onosproject.net.DeviceIddeviceId()Gets device id in this PortNextObjectiveStoreKey.booleanequals(Object o)inthashCode()org.onosproject.net.flow.TrafficSelectormeta()Gets metadata information in this PortNextObjectiveStoreKey.org.onosproject.net.PortNumberportNumber()Gets port information in this PortNextObjectiveStoreKey.StringtoString()org.onosproject.net.flow.TrafficTreatmenttreatment()Gets treatment information in this PortNextObjectiveStoreKey.
-
-
-
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 IDportNum- port numbertreatment- treatment that will be applied to the interfacemeta- 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
-
-