Class MessageFactory


  • public abstract class MessageFactory
    extends Object
    • Constructor Detail

      • MessageFactory

        public MessageFactory()
    • Method Detail

      • createHelloInput

        public static HelloInput createHelloInput​(org.opendaylight.yangtools.yang.common.Uint8 helloVersion,
                                                  org.opendaylight.yangtools.yang.common.Uint32 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​(org.opendaylight.yangtools.yang.common.Uint8 helloVersion,
                                                  org.opendaylight.yangtools.yang.common.Uint32 helloXid,
                                                  List<org.opendaylight.yangtools.yang.common.Uint8> 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