Class BGPStateCollector
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.impl.state.BGPStateCollector
-
- All Implemented Interfaces:
BGPStateProvider
,BGPStateProviderRegistry
@Singleton @MetaInfServices public final class BGPStateCollector extends Object implements BGPStateProviderRegistry, BGPStateProvider
-
-
Constructor Summary
Constructors Constructor Description BGPStateCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BGPPeerState>
getPeerStats()
List of Registered BGP Peer States.List<BGPRibState>
getRibStats()
List of Registered BGP Rib States.org.opendaylight.yangtools.concepts.Registration
register(BGPPeerStateProvider peerStateProvider)
Register peer state provider.org.opendaylight.yangtools.concepts.Registration
register(BGPRibStateProvider ribStateProvider)
Register rib state provider.
-
-
-
Method Detail
-
register
public org.opendaylight.yangtools.concepts.Registration register(BGPRibStateProvider ribStateProvider)
Description copied from interface:BGPStateProviderRegistry
Register rib state provider.- Specified by:
register
in interfaceBGPStateProviderRegistry
- Parameters:
ribStateProvider
- rib state provider
-
register
public org.opendaylight.yangtools.concepts.Registration register(BGPPeerStateProvider peerStateProvider)
Description copied from interface:BGPStateProviderRegistry
Register peer state provider.- Specified by:
register
in interfaceBGPStateProviderRegistry
- Parameters:
peerStateProvider
- peer state provider
-
getRibStats
public List<BGPRibState> getRibStats()
Description copied from interface:BGPStateProvider
List of Registered BGP Rib States.- Specified by:
getRibStats
in interfaceBGPStateProvider
- Returns:
- ribs stats
-
getPeerStats
public List<BGPPeerState> getPeerStats()
Description copied from interface:BGPStateProvider
List of Registered BGP Peer States.- Specified by:
getPeerStats
in interfaceBGPStateProvider
- Returns:
- peers stats
-
-