Class OpenFlowClassifier.Builder

  • Enclosing class:
    OpenFlowClassifier

    public static class OpenFlowClassifier.Builder
    extends java.lang.Object
    Builder of the OpenFlow classifier.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(org.onosproject.net.DeviceId deviceId, int idQueue)
      Builder constructor for OpenFlow classifier.
    • Constructor Detail

      • Builder

        public Builder​(org.onosproject.net.DeviceId deviceId,
                       int idQueue)
        Builder constructor for OpenFlow classifier.
        Parameters:
        deviceId - the device id
        idQueue - the queue id
    • Method Detail

      • ethernetType

        public OpenFlowClassifier.Builder ethernetType​(short ethernetType)
        Sets the ethernet type for the OpenFlow classifier that will be built.
        Parameters:
        ethernetType - the ethernet type
        Returns:
        this builder
      • build

        public OpenFlowClassifier build()
        Builds the OpenFlow classifier from the accumulated parameters.
        Returns:
        OpenFlow classifier instance