Class HandshakeListenerImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.connection.listener.HandshakeListenerImpl
-
- All Implemented Interfaces:
HandshakeListener
public class HandshakeListenerImpl extends Object implements HandshakeListener
-
-
Constructor Summary
Constructors Constructor Description HandshakeListenerImpl(ConnectionContext connectionContext, DeviceConnectedHandler deviceConnectedHandler)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onHandshakeFailure()
This method is called when handshake fails for some reason.void
onHandshakeSuccessful(GetFeaturesOutput featureOutput, Short version)
Handshake successfull.void
setHandshakeContext(HandshakeContext handshakeContext)
Setter.
-
-
-
Constructor Detail
-
HandshakeListenerImpl
public HandshakeListenerImpl(ConnectionContext connectionContext, DeviceConnectedHandler deviceConnectedHandler)
Constructor.- Parameters:
connectionContext
- - connection contextdeviceConnectedHandler
- - device connected handler
-
-
Method Detail
-
onHandshakeSuccessful
public void onHandshakeSuccessful(GetFeaturesOutput featureOutput, Short 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
public void setHandshakeContext(HandshakeContext handshakeContext)
Description copied from interface:HandshakeListener
Setter.- Specified by:
setHandshakeContext
in interfaceHandshakeListener
- Parameters:
handshakeContext
- context
-
-