Class TestingSessionListener
java.lang.Object
org.opendaylight.protocol.pcep.testtool.TestingSessionListener
- All Implemented Interfaces:
EventListener
,PCEPSessionListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMessage
(PCEPSession session, Message message) Fired when a normal protocol message is received.void
onSessionDown
(PCEPSession session, Exception exception) Fired when the session went down because of an IO error.void
onSessionTerminated
(PCEPSession session, PCEPTerminationReason cause) Fired when the session is terminated locally.void
onSessionUp
(PCEPSession session) Fired when the session was established successfully.
-
Constructor Details
-
TestingSessionListener
public TestingSessionListener()
-
-
Method Details
-
onMessage
Description copied from interface:PCEPSessionListener
Fired when a normal protocol message is received.- Specified by:
onMessage
in interfacePCEPSessionListener
message
- Protocol message
-
onSessionUp
Description copied from interface:PCEPSessionListener
Fired when the session was established successfully.- Specified by:
onSessionUp
in interfacePCEPSessionListener
- Parameters:
session
- Peer address families which we accepted
-
onSessionDown
Description copied from interface:PCEPSessionListener
Fired when the session went down because of an IO error. Implementation should take care of closing underlying session.- Specified by:
onSessionDown
in interfacePCEPSessionListener
- Parameters:
session
- that went downexception
- Exception that was thrown as the cause of session being down
-
onSessionTerminated
Description copied from interface:PCEPSessionListener
Fired when the session is terminated locally. The session has already been closed and transitioned to IDLE state. Any outstanding queued messages were not sent. The user should not attempt to make any use of the session.- Specified by:
onSessionTerminated
in interfacePCEPSessionListener
cause
- the cause why the session went down
-