Class BGPRibStateImpl
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.DefaultRibReference
-
- org.opendaylight.protocol.bgp.rib.impl.state.BGPRibStateImpl
-
- All Implemented Interfaces:
RibReference,BGPRibState,BGPRibStateConsumer,InstanceReference<Rib>
- Direct Known Subclasses:
RIBImpl
public class BGPRibStateImpl extends DefaultRibReference implements BGPRibState, BGPRibStateConsumer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBGPRibStateImpl(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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumbergetAs()AS.longgetPathCount(TablesKey tablesKey)Total Path Installed per specific TableKey.Map<TablesKey,Long>getPathsCount()Mapped Total Paths Count per TableKey.longgetPrefixesCount(TablesKey tablesKey)Total Prefixes Installed per specific TableKey.BGPRibStategetRIBState()Returns RIB Operational State.BgpIdgetRouteId()BGP identifier.Map<TablesKey,Long>getTablesPrefixesCount()Prefixes count per tablesKey Type.longgetTotalPathsCount()Total Paths Installed.longgetTotalPrefixesCount()Total Prefixes Installed.booleanisActive()Indicates whether this instance is being actively managed and updated.protected voidregisterTotalPathCounter(@NonNull TablesKey key, @NonNull TotalPathsCounter totalPathsCounter)protected voidregisterTotalPrefixesCounter(@NonNull TablesKey key, @NonNull TotalPrefixesCounter totalPrefixesCounter)protected voidsetActive(boolean active)-
Methods inherited from class org.opendaylight.protocol.bgp.rib.DefaultRibReference
getInstanceIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.protocol.bgp.rib.RibReference
getInstanceIdentifier
-
-
-
-
Method Detail
-
getTablesPrefixesCount
public final Map<TablesKey,Long> getTablesPrefixesCount()
Description copied from interface:BGPRibStatePrefixes count per tablesKey Type.- Specified by:
getTablesPrefixesCountin interfaceBGPRibState- Returns:
- Prefixes count
-
getPathsCount
public final Map<TablesKey,Long> getPathsCount()
Description copied from interface:BGPRibStateMapped Total Paths Count per TableKey.- Specified by:
getPathsCountin interfaceBGPRibState- Returns:
- Prefixes count
-
getTotalPathsCount
public final long getTotalPathsCount()
Description copied from interface:BGPRibStateTotal Paths Installed.- Specified by:
getTotalPathsCountin interfaceBGPRibState- Returns:
- count
-
getTotalPrefixesCount
public final long getTotalPrefixesCount()
Description copied from interface:BGPRibStateTotal Prefixes Installed.- Specified by:
getTotalPrefixesCountin interfaceBGPRibState- Returns:
- count
-
getPathCount
public final long getPathCount(TablesKey tablesKey)
Description copied from interface:BGPRibStateTotal Path Installed per specific TableKey.- Specified by:
getPathCountin interfaceBGPRibState- Parameters:
tablesKey- table key- Returns:
- count
-
getPrefixesCount
public final long getPrefixesCount(TablesKey tablesKey)
Description copied from interface:BGPRibStateTotal Prefixes Installed per specific TableKey.- Specified by:
getPrefixesCountin interfaceBGPRibState- 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:BGPRibStateAS.- Specified by:
getAsin interfaceBGPRibState- Returns:
- as
-
getRouteId
public final BgpId getRouteId()
Description copied from interface:BGPRibStateBGP identifier.- Specified by:
getRouteIdin interfaceBGPRibState- 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:BGPRibStateIndicates whether this instance is being actively managed and updated.- Specified by:
isActivein interfaceBGPRibState- Returns:
- active
-
setActive
protected final void setActive(boolean active)
-
getRIBState
public final BGPRibState getRIBState()
Description copied from interface:BGPRibStateConsumerReturns RIB Operational State.- Specified by:
getRIBStatein interfaceBGPRibStateConsumer- Returns:
- BGP RIB State
-
-