Class BmpRouterImpl
- java.lang.Object
-
- org.opendaylight.protocol.bmp.impl.app.BmpRouterImpl
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.dom.api.DOMTransactionChainListener
,BmpSessionListener
,BmpRouter
public final class BmpRouterImpl extends Object implements BmpRouter, org.opendaylight.mdsal.dom.api.DOMTransactionChainListener
-
-
Constructor Summary
Constructors Constructor Description BmpRouterImpl(org.opendaylight.protocol.bmp.impl.app.RouterSessionManager sessionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
RouterId
getRouterId()
Returns router's identifier, represented by router's remote IP address.void
onMessage(org.opendaylight.yangtools.yang.binding.Notification message)
void
onSessionDown(Exception exception)
void
onSessionUp(BmpSession psession)
void
onTransactionChainFailed(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain, org.opendaylight.mdsal.dom.api.DOMDataTreeTransaction transaction, Throwable cause)
void
onTransactionChainSuccessful(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain)
-
-
-
Method Detail
-
onSessionUp
public void onSessionUp(BmpSession psession)
- Specified by:
onSessionUp
in interfaceBmpSessionListener
-
onSessionDown
public void onSessionDown(Exception exception)
- Specified by:
onSessionDown
in interfaceBmpSessionListener
-
onMessage
public void onMessage(org.opendaylight.yangtools.yang.binding.Notification message)
- Specified by:
onMessage
in interfaceBmpSessionListener
-
getRouterId
public RouterId getRouterId()
Description copied from interface:BmpRouter
Returns router's identifier, represented by router's remote IP address.- Specified by:
getRouterId
in interfaceBmpRouter
- Returns:
- router identifier.
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
onTransactionChainFailed
public void onTransactionChainFailed(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain, org.opendaylight.mdsal.dom.api.DOMDataTreeTransaction transaction, Throwable cause)
- Specified by:
onTransactionChainFailed
in interfaceorg.opendaylight.mdsal.dom.api.DOMTransactionChainListener
-
onTransactionChainSuccessful
public void onTransactionChainSuccessful(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain)
- Specified by:
onTransactionChainSuccessful
in interfaceorg.opendaylight.mdsal.dom.api.DOMTransactionChainListener
-
-