Class BmpRouterImpl

java.lang.Object
org.opendaylight.protocol.bmp.impl.app.BmpRouterImpl
All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<org.opendaylight.yangtools.yang.common.Empty>, AutoCloseable, BmpSessionListener, BmpRouter

public final class BmpRouterImpl extends Object implements BmpRouter, com.google.common.util.concurrent.FutureCallback<org.opendaylight.yangtools.yang.common.Empty>
  • Constructor Details

    • BmpRouterImpl

      public BmpRouterImpl(org.opendaylight.protocol.bmp.impl.app.RouterSessionManager sessionManager)
  • Method Details

    • onSessionUp

      public void onSessionUp(BmpSession psession)
      Specified by:
      onSessionUp in interface BmpSessionListener
    • onSessionDown

      public void onSessionDown(Exception exception)
      Specified by:
      onSessionDown in interface BmpSessionListener
    • onMessage

      public void onMessage(org.opendaylight.yangtools.binding.Notification<?> message)
      Specified by:
      onMessage in interface BmpSessionListener
    • getRouterId

      public RouterId getRouterId()
      Description copied from interface: BmpRouter
      Returns router's identifier, represented by router's remote IP address.
      Specified by:
      getRouterId in interface BmpRouter
      Returns:
      router identifier.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • onFailure

      public void onFailure(Throwable cause)
      Specified by:
      onFailure in interface com.google.common.util.concurrent.FutureCallback<org.opendaylight.yangtools.yang.common.Empty>
    • onSuccess

      public void onSuccess(org.opendaylight.yangtools.yang.common.Empty value)
      Specified by:
      onSuccess in interface com.google.common.util.concurrent.FutureCallback<org.opendaylight.yangtools.yang.common.Empty>