public class HandshakeManagerImpl extends Object implements HandshakeManager
Constructor and Description |
---|
HandshakeManagerImpl(ConnectionAdapter connectionAdapter,
Short highestVersion,
List<Short> versionOrder,
ErrorHandler errorHandler,
HandshakeListener handshakeListener,
boolean useVersionBitmap,
DeviceConnectionRateLimiter deviceConnectionRateLimiter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Short |
getVersion()
return negotiated version.
|
protected void |
postHandshake(Short proposedVersion,
Long xid)
after handshake set features, register to session.
|
protected Short |
proposeCommonBitmapVersion(List<Elements> list)
find common highest supported bitmap version.
|
protected short |
proposeNextVersion(short remoteVersion)
find supported version based on remoteVersion.
|
void |
shake(HelloMessage receivedHello)
process current handshake step.
|
public HandshakeManagerImpl(ConnectionAdapter connectionAdapter, Short highestVersion, List<Short> versionOrder, ErrorHandler errorHandler, HandshakeListener handshakeListener, boolean useVersionBitmap, DeviceConnectionRateLimiter deviceConnectionRateLimiter)
connectionAdapter
- connection adaptor for switchhighestVersion
- highest openflow versionversionOrder
- list of version in order for connection protocol negotiationerrorHandler
- the ErrorHandlerhandshakeListener
- the HandshakeListeneruseVersionBitmap
- should use negotiation bit mappublic void shake(HelloMessage receivedHello)
HandshakeManager
shake
in interface HandshakeManager
receivedHello
- message from device we need to act uponpublic Short getVersion()
HandshakeManager
getVersion
in interface HandshakeManager
protected Short proposeCommonBitmapVersion(List<Elements> list)
list
- bitmap listprotected short proposeNextVersion(short remoteVersion)
remoteVersion
- openflow version supported by remote entityCopyright © 2019 OpenDaylight. All rights reserved.