Class OpenFlowClassifier
- java.lang.Object
-
- org.onosproject.openflow.controller.OpenFlowClassifier
-
public final class OpenFlowClassifier extends java.lang.ObjectRepresents to OpenFlow messages classifier.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenFlowClassifier.BuilderBuilder of the OpenFlow classifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onosproject.net.DeviceIddeviceId()Gets the id of source OpenFlow device matched by the classifier.booleanequals(java.lang.Object o)Compares OpenFlow classifiers.shortethernetType()Gets the ethernet type matched by the classifier.inthashCode()Calculates hashCode of the OpenFlow Classifier object.intidQueue()Gets the queue id targeted by the classifier.
-
-
-
Method Detail
-
ethernetType
public short ethernetType()
Gets the ethernet type matched by the classifier.- Returns:
- matched packet ethernet type
-
deviceId
public org.onosproject.net.DeviceId deviceId()
Gets the id of source OpenFlow device matched by the classifier.- Returns:
- connected device id
-
idQueue
public int idQueue()
Gets the queue id targeted by the classifier.- Returns:
- target queue id
-
equals
public boolean equals(java.lang.Object o)
Compares OpenFlow classifiers.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- object that we want to compare to- Returns:
- equality check result
-
hashCode
public int hashCode()
Calculates hashCode of the OpenFlow Classifier object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash of the OpenFlow Classifier
-
-