Class MessageFactory


  • public abstract class MessageFactory
    extends Object
    • Constructor Detail

      • MessageFactory

        public MessageFactory()
    • Method Detail

      • createHelloInput

        public static HelloInput createHelloInput​(short helloVersion,
                                                  long helloXid)
        Creates hello input.
        Parameters:
        helloVersion - openflow version for hello message to send to switch
        helloXid - transaction id for hello message
        Returns:
        HelloInput without elements
      • createHelloInput

        public static HelloInput createHelloInput​(short helloVersion,
                                                  long helloXid,
                                                  List<Short> versionOrder)
        Creates hello input.
        Parameters:
        helloVersion - openflow version for hello message to send to switch
        helloXid - transaction id for hello message
        versionOrder - list of openflow version in order
        Returns:
        HelloInput with elements (version bitmap)
      • digVersions

        public static List<Boolean> digVersions​(List<Elements> elements)
        Lists all versions.
        Parameters:
        elements - list of versions
        Returns:
        version boolean list