Class OpenflowProtocolListenerInitialImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.connection.listener.OpenflowProtocolListenerInitialImpl
- All Implemented Interfaces:
ConnectionAdapter.MessageListener
public class OpenflowProtocolListenerInitialImpl
extends Object
implements ConnectionAdapter.MessageListener
-
Constructor Summary
ConstructorDescriptionOpenflowProtocolListenerInitialImpl
(ConnectionContext connectionContext, HandshakeContext handshakeContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkState
(ConnectionContext.CONNECTION_STATE expectedState) Check state of the connection context.void
onEchoRequest
(EchoRequestMessage echoRequestMessage) void
onError
(ErrorMessage notification) void
onExperimenter
(ExperimenterMessage notification) void
onFlowRemoved
(FlowRemovedMessage notification) void
onHello
(HelloMessage hello) void
onMultipartReply
(MultipartReplyMessage notification) void
onPacketIn
(PacketInMessage notification) void
onPortStatus
(PortStatusMessage notification)
-
Constructor Details
-
OpenflowProtocolListenerInitialImpl
public OpenflowProtocolListenerInitialImpl(ConnectionContext connectionContext, HandshakeContext handshakeContext) Constructor.- Parameters:
connectionContext
- - connection contexthandshakeContext
- - handshake context
-
-
Method Details
-
onEchoRequest
- Specified by:
onEchoRequest
in interfaceConnectionAdapter.MessageListener
-
onError
- Specified by:
onError
in interfaceConnectionAdapter.MessageListener
-
onExperimenter
- Specified by:
onExperimenter
in interfaceConnectionAdapter.MessageListener
-
onFlowRemoved
- Specified by:
onFlowRemoved
in interfaceConnectionAdapter.MessageListener
-
onHello
- Specified by:
onHello
in interfaceConnectionAdapter.MessageListener
-
onMultipartReply
- Specified by:
onMultipartReply
in interfaceConnectionAdapter.MessageListener
-
onPacketIn
- Specified by:
onPacketIn
in interfaceConnectionAdapter.MessageListener
-
onPortStatus
- Specified by:
onPortStatus
in interfaceConnectionAdapter.MessageListener
-
checkState
Check state of the connection context.- Parameters:
expectedState
- - the expected state
-