Interface BGPSessionListener
- All Superinterfaces:
EventListener
,PeerRPCs
- All Known Implementing Classes:
BGPPeer
Listener that receives session informations from the session.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
markUptodate
(TablesKey tablesKey) Marks synchronization finished for given Table key.void
onMessage
(BGPSession session, org.opendaylight.yangtools.yang.binding.Notification<?> notification) Fired when a normal protocol message is received.void
onSessionDown
(BGPSession session, Exception exc) Fired when the session went down because of an IO error.void
onSessionTerminated
(@Nullable BGPSession session, BGPTerminationReason reason) Fired when the session is terminated locally.void
onSessionUp
(BGPSession session) Fired when the session was established successfully.Methods inherited from interface org.opendaylight.protocol.bgp.rib.spi.PeerRPCs
releaseConnection, restartGracefully
-
Method Details
-
markUptodate
Marks synchronization finished for given Table key.- Parameters:
tablesKey
- of the table where synchronization finished
-
onSessionUp
Fired when the session was established successfully.- Parameters:
session
- Peer address families which we accepted
-
onSessionDown
Fired when the session went down because of an IO error. Implementation should take care of closing underlying session.- Parameters:
session
- that went downexc
- Exception that was thrown as the cause of session being down
-
onSessionTerminated
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(BGPSession session, org.opendaylight.yangtools.yang.binding.Notification<?> notification) throws BGPDocumentedException Fired when a normal protocol message is received.- Parameters:
notification
- Protocol message- Throws:
BGPDocumentedException
-