Class HandshakeListenerImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.connection.listener.HandshakeListenerImpl
- All Implemented Interfaces:
HandshakeListener
-
Constructor Summary
ConstructorDescriptionHandshakeListenerImpl
(ConnectionContext connectionContext, DeviceConnectedHandler deviceConnectedHandler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called when handshake fails for some reason.void
onHandshakeSuccessful
(GetFeaturesOutput featureOutput, org.opendaylight.yangtools.yang.common.Uint8 version) Handshake successfull.void
setHandshakeContext
(HandshakeContext handshakeContext) Setter.
-
Constructor Details
-
HandshakeListenerImpl
public HandshakeListenerImpl(ConnectionContext connectionContext, DeviceConnectedHandler deviceConnectedHandler) Constructor.- Parameters:
connectionContext
- - connection contextdeviceConnectedHandler
- - device connected handler
-
-
Method Details
-
onHandshakeSuccessful
public void onHandshakeSuccessful(GetFeaturesOutput featureOutput, org.opendaylight.yangtools.yang.common.Uint8 version) Description copied from interface:HandshakeListener
Handshake successfull.- Specified by:
onHandshakeSuccessful
in interfaceHandshakeListener
- Parameters:
featureOutput
- obtainedversion
- negotiated
-
onHandshakeFailure
public void onHandshakeFailure()Description copied from interface:HandshakeListener
This method is called when handshake fails for some reason. It allows all necessary cleanup operations.- Specified by:
onHandshakeFailure
in interfaceHandshakeListener
-
setHandshakeContext
Description copied from interface:HandshakeListener
Setter.- Specified by:
setHandshakeContext
in interfaceHandshakeListener
- Parameters:
handshakeContext
- context
-