Class OpenFlowClassifier


  • public final class OpenFlowClassifier
    extends java.lang.Object
    Represents to OpenFlow messages classifier.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OpenFlowClassifier.Builder
      Builder of the OpenFlow classifier.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.onosproject.net.DeviceId deviceId()
      Gets the id of source OpenFlow device matched by the classifier.
      boolean equals​(java.lang.Object o)
      Compares OpenFlow classifiers.
      short ethernetType()
      Gets the ethernet type matched by the classifier.
      int hashCode()
      Calculates hashCode of the OpenFlow Classifier object.
      int idQueue()
      Gets the queue id targeted by the classifier.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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:
        equals in class java.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:
        hashCode in class java.lang.Object
        Returns:
        hash of the OpenFlow Classifier