public class Bgp4Update extends MRTRecord implements Comparable<Bgp4Update>, Comparator<Bgp4Update>
| Modifier and Type | Field and Description |
|---|---|
protected AS |
peerAS |
protected InetAddress |
peerIP |
protected Prefix |
prefix |
protected Attributes |
updateAttr |
protected String |
updateStr |
protected char |
updateType |
| Constructor and Description |
|---|
Bgp4Update(byte[] header,
InetAddress peerIP,
AS peerAS,
Prefix prefix) |
Bgp4Update(byte[] header,
InetAddress peerIP,
AS peerAS,
Prefix prefix,
Attributes updateAttr) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Bgp4Update o1,
Bgp4Update o2) |
int |
compareTo(Bgp4Update other)
Order by prefixes, then by peer and then by time.
|
boolean |
equals(Bgp4Update o) |
boolean |
equals(Object o) |
ASPath |
getASPath() |
Attributes |
getAttributes() |
InetAddress |
getPeer() |
AS |
getPeerAS() |
Prefix |
getPrefix() |
boolean |
hasAsPathPrepend() |
boolean |
isIPv4() |
boolean |
isIPv6() |
Advertisement |
toAdvertisement()
overrides
MRTRecord.toAdvertisement()
return this if it is an advertisement or null otherwise |
String |
toString() |
Withdraw |
toWithdraw()
overrides
MRTRecord.toWithdraw()
return this if it is an withdraw or null otherwise |
getSubType, getTime, getType, setGeneric, setHeaderData, toTableDumpclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected char updateType
protected String updateStr
protected InetAddress peerIP
protected AS peerAS
protected Prefix prefix
protected Attributes updateAttr
public Bgp4Update(byte[] header,
InetAddress peerIP,
AS peerAS,
Prefix prefix,
Attributes updateAttr)
public Bgp4Update(byte[] header,
InetAddress peerIP,
AS peerAS,
Prefix prefix)
public boolean isIPv4()
public boolean isIPv6()
public InetAddress getPeer()
public boolean hasAsPathPrepend()
hasAsPathPrepend in class MRTRecordpublic Attributes getAttributes()
public int compareTo(Bgp4Update other)
compareTo in interface Comparable<Bgp4Update>public int compare(Bgp4Update o1, Bgp4Update o2)
compare in interface Comparator<Bgp4Update>public boolean equals(Bgp4Update o)
public boolean equals(Object o)
equals in interface Comparator<Bgp4Update>equals in class Objectpublic Advertisement toAdvertisement()
MRTRecord.toAdvertisement()
return this if it is an advertisement or null otherwisetoAdvertisement in class MRTRecordMRTRecord.toAdvertisement(),
Advertisement.toAdvertisement()public Withdraw toWithdraw()
MRTRecord.toWithdraw()
return this if it is an withdraw or null otherwisetoWithdraw in class MRTRecordMRTRecord.toWithdraw(),
Withdraw.toWithdraw()Copyright © 2025. All rights reserved.