Class OpenflowProtocolListenerInitialImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.connection.listener.OpenflowProtocolListenerInitialImpl
-
- All Implemented Interfaces:
EventListener
,OpenflowProtocolListener
,org.opendaylight.yangtools.yang.binding.NotificationListener
public class OpenflowProtocolListenerInitialImpl extends Object implements OpenflowProtocolListener
-
-
Constructor Summary
Constructors Constructor Description OpenflowProtocolListenerInitialImpl(ConnectionContext connectionContext, HandshakeContext handshakeContext)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkState(ConnectionContext.CONNECTION_STATE expectedState)
Check state of the connection context.void
onEchoRequestMessage(EchoRequestMessage echoRequestMessage)
void
onErrorMessage(ErrorMessage notification)
void
onExperimenterMessage(ExperimenterMessage notification)
void
onFlowRemovedMessage(FlowRemovedMessage notification)
void
onHelloMessage(HelloMessage hello)
void
onMultipartReplyMessage(MultipartReplyMessage notification)
void
onPacketInMessage(PacketInMessage notification)
void
onPortStatusMessage(PortStatusMessage notification)
-
-
-
Constructor Detail
-
OpenflowProtocolListenerInitialImpl
public OpenflowProtocolListenerInitialImpl(ConnectionContext connectionContext, HandshakeContext handshakeContext)
Constructor.- Parameters:
connectionContext
- - connection contexthandshakeContext
- - handshake context
-
-
Method Detail
-
onEchoRequestMessage
public void onEchoRequestMessage(EchoRequestMessage echoRequestMessage)
- Specified by:
onEchoRequestMessage
in interfaceOpenflowProtocolListener
-
onErrorMessage
public void onErrorMessage(ErrorMessage notification)
- Specified by:
onErrorMessage
in interfaceOpenflowProtocolListener
-
onExperimenterMessage
public void onExperimenterMessage(ExperimenterMessage notification)
- Specified by:
onExperimenterMessage
in interfaceOpenflowProtocolListener
-
onFlowRemovedMessage
public void onFlowRemovedMessage(FlowRemovedMessage notification)
- Specified by:
onFlowRemovedMessage
in interfaceOpenflowProtocolListener
-
onHelloMessage
public void onHelloMessage(HelloMessage hello)
- Specified by:
onHelloMessage
in interfaceOpenflowProtocolListener
-
onMultipartReplyMessage
public void onMultipartReplyMessage(MultipartReplyMessage notification)
- Specified by:
onMultipartReplyMessage
in interfaceOpenflowProtocolListener
-
onPacketInMessage
public void onPacketInMessage(PacketInMessage notification)
- Specified by:
onPacketInMessage
in interfaceOpenflowProtocolListener
-
onPortStatusMessage
public void onPortStatusMessage(PortStatusMessage notification)
- Specified by:
onPortStatusMessage
in interfaceOpenflowProtocolListener
-
checkState
protected boolean checkState(ConnectionContext.CONNECTION_STATE expectedState)
Check state of the connection context.- Parameters:
expectedState
- - the expected state
-
-