public class BGPAutNum extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
autNum |
protected com.google.common.collect.Multimap<org.apache.commons.lang3.tuple.Pair<Long,String>,BGPRoute> |
includedRouteMap
Maps of (AS-Peer, IP) to [Routes].
|
protected String |
name |
| Constructor and Description |
|---|
BGPAutNum(net.ripe.db.whois.common.rpsl.RpslObject object)
Initialise a new BGPAutNum instance and generate its route maps
|
| Modifier and Type | Method and Description |
|---|---|
long |
getASOfPeer(String peerAddress)
Query the AutNum object to find which AS a particular peer address is from.
|
BGPRouteTable |
getTableForAS(long peerAutNum)
Query the AutNum object to retrieve it's export routing table for all peers in an AS
|
BGPRouteTable |
getTableForPeer(long peerAutNum,
String peerAddress)
Query the AutNum object to retrieve it's export routing table for a peer.
|
String |
toString() |
protected String name
protected long autNum
public BGPAutNum(net.ripe.db.whois.common.rpsl.RpslObject object)
object - aut-num RPSL objectpublic BGPRouteTable getTableForPeer(long peerAutNum, String peerAddress)
peerAutNum - AS of the peer to be retrieved (eg. 1)peerAddress - Address of the peer to be retrieved (eg. "1.1.1.1")public BGPRouteTable getTableForAS(long peerAutNum)
peerAutNum - AS to be retrieved (eg. 1)public long getASOfPeer(String peerAddress)
peerAddress - peer to search forCopyright © 2015. All rights reserved.