Class BGPRibStateImpl

java.lang.Object
org.opendaylight.protocol.bgp.rib.DefaultRibReference
org.opendaylight.protocol.bgp.rib.impl.state.BGPRibStateImpl
All Implemented Interfaces:
RibReference, BGPRibState, BGPRibStateProvider, InstanceReference<Rib>
Direct Known Subclasses:
RIBImpl

public class BGPRibStateImpl extends DefaultRibReference implements BGPRibState, BGPRibStateProvider
  • Constructor Details

    • BGPRibStateImpl

      protected BGPRibStateImpl(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Rib,RibKey> instanceIdentifier, @NonNull BgpId routeId, @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber localAs)
  • Method Details

    • getTablesPrefixesCount

      public final Map<TablesKey,Long> getTablesPrefixesCount()
      Description copied from interface: BGPRibState
      Prefixes count per tablesKey Type.
      Specified by:
      getTablesPrefixesCount in interface BGPRibState
      Returns:
      Prefixes count
    • getPathsCount

      public final Map<TablesKey,Long> getPathsCount()
      Description copied from interface: BGPRibState
      Mapped Total Paths Count per TableKey.
      Specified by:
      getPathsCount in interface BGPRibState
      Returns:
      Prefixes count
    • getTotalPathsCount

      public final long getTotalPathsCount()
      Description copied from interface: BGPRibState
      Total Paths Installed.
      Specified by:
      getTotalPathsCount in interface BGPRibState
      Returns:
      count
    • getTotalPrefixesCount

      public final long getTotalPrefixesCount()
      Description copied from interface: BGPRibState
      Total Prefixes Installed.
      Specified by:
      getTotalPrefixesCount in interface BGPRibState
      Returns:
      count
    • getPathCount

      public final long getPathCount(TablesKey tablesKey)
      Description copied from interface: BGPRibState
      Total Path Installed per specific TableKey.
      Specified by:
      getPathCount in interface BGPRibState
      Parameters:
      tablesKey - table key
      Returns:
      count
    • getPrefixesCount

      public final long getPrefixesCount(TablesKey tablesKey)
      Description copied from interface: BGPRibState
      Total Prefixes Installed per specific TableKey.
      Specified by:
      getPrefixesCount in interface BGPRibState
      Parameters:
      tablesKey - table key
      Returns:
      count
    • getAs

      public final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getAs()
      Description copied from interface: BGPRibState
      AS.
      Specified by:
      getAs in interface BGPRibState
      Returns:
      as
    • getRouteId

      public final BgpId getRouteId()
      Description copied from interface: BGPRibState
      BGP identifier.
      Specified by:
      getRouteId in interface BGPRibState
      Returns:
      BGP identifier
    • registerTotalPathCounter

      protected final void registerTotalPathCounter(@NonNull TablesKey key, @NonNull TotalPathsCounter totalPathsCounter)
    • registerTotalPrefixesCounter

      protected final void registerTotalPrefixesCounter(@NonNull TablesKey key, @NonNull TotalPrefixesCounter totalPrefixesCounter)
    • isActive

      public final boolean isActive()
      Description copied from interface: BGPRibState
      Indicates whether this instance is being actively managed and updated.
      Specified by:
      isActive in interface BGPRibState
      Returns:
      active
    • setActive

      protected final void setActive(boolean active)
    • getRIBState

      public final BGPRibState getRIBState()
      Description copied from interface: BGPRibStateProvider
      Returns RIB Operational State.
      Specified by:
      getRIBState in interface BGPRibStateProvider
      Returns:
      BGP RIB State