Class BGPPeerTrackerImpl
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.impl.BGPPeerTrackerImpl
-
- All Implemented Interfaces:
BGPPeerTracker
public final class BGPPeerTrackerImpl extends Object implements BGPPeerTracker
-
-
Constructor Summary
Constructors Constructor Description BGPPeerTrackerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Peer>
getNonInternalPeers()
Returns map of PeerId per PeerRole, filtering internal Peers.Peer
getPeer(PeerId peerId)
Returns Peer.List<Peer>
getPeers()
Returns map of PeerId per PeerRole.org.opendaylight.yangtools.concepts.Registration
registerPeer(Peer peer)
Register Peer.
-
-
-
Method Detail
-
registerPeer
public org.opendaylight.yangtools.concepts.Registration registerPeer(Peer peer)
Description copied from interface:BGPPeerTracker
Register Peer.- Specified by:
registerPeer
in interfaceBGPPeerTracker
- Parameters:
peer
- Peer- Returns:
- registration tickets
-
getPeer
public Peer getPeer(PeerId peerId)
Description copied from interface:BGPPeerTracker
Returns Peer.- Specified by:
getPeer
in interfaceBGPPeerTracker
- Parameters:
peerId
- peer ID- Returns:
- Peer
-
getPeers
public List<Peer> getPeers()
Description copied from interface:BGPPeerTracker
Returns map of PeerId per PeerRole. Role with none peerId will be filtered.- Specified by:
getPeers
in interfaceBGPPeerTracker
- Returns:
- Returns map of Peer group by PeerRole
-
getNonInternalPeers
public List<Peer> getNonInternalPeers()
Description copied from interface:BGPPeerTracker
Returns map of PeerId per PeerRole, filtering internal Peers. Role with none peerId will be filtered.- Specified by:
getNonInternalPeers
in interfaceBGPPeerTracker
- Returns:
- Returns map of Peer group by PeerRole
-
-