Package org.opendaylight.protocol.pcep
Interface PCEPSessionListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
AbstractTopologySessionListener
,PCCSessionListener
,TestingSessionListener
@NonNullByDefault public interface PCEPSessionListener extends EventListener
Listener that receives session informations from the session.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 reason)
Fired when the session is terminated locally.void
onSessionUp(PCEPSession session)
Fired when the session was established successfully.
-
-
-
Method Detail
-
onSessionUp
void onSessionUp(PCEPSession session)
Fired when the session was established successfully.- Parameters:
session
- Peer address families which we accepted
-
onSessionDown
void onSessionDown(PCEPSession session, Exception exception)
Fired when the session went down because of an IO error. Implementation should take care of closing underlying session.- Parameters:
session
- that went downexception
- Exception that was thrown as the cause of session being down
-
onSessionTerminated
void onSessionTerminated(PCEPSession session, PCEPTerminationReason reason)
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.- Parameters:
reason
- the cause why the session went down
-
onMessage
void onMessage(PCEPSession session, Message message)
Fired when a normal protocol message is received.- Parameters:
message
- Protocol message
-
-