Class MessageFactory
java.lang.Object
org.opendaylight.openflowplugin.impl.util.MessageFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HelloInput
createHelloInput
(org.opendaylight.yangtools.yang.common.Uint8 helloVersion, org.opendaylight.yangtools.yang.common.Uint32 helloXid) Creates hello input.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.digVersions
(List<Elements> elements) Lists all versions.
-
Constructor Details
-
MessageFactory
public MessageFactory()
-
-
Method Details
-
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 switchhelloXid
- 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 switchhelloXid
- transaction id for hello messageversionOrder
- list of openflow version in order- Returns:
- HelloInput with elements (version bitmap)
-
digVersions
Lists all versions.- Parameters:
elements
- list of versions- Returns:
- version boolean list
-