public class PimNeighbor extends Object
| Constructor and Description |
|---|
PimNeighbor(org.onlab.packet.IpAddress ipAddress,
org.onlab.packet.MacAddress macAddress,
short holdTime,
int pruneDelay,
int priority,
int genId)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static PimNeighbor |
createPimNeighbor(org.onlab.packet.IpAddress ipAddress,
org.onlab.packet.MacAddress macAddress,
Collection<org.onlab.packet.pim.PIMHelloOption> opts)
Creates a PIM neighbor based on an IP, MAC, and collection of PIM HELLO
options.
|
boolean |
equals(Object other) |
int |
generationId()
Gets our neighbor's generation ID.
|
int |
hashCode() |
short |
holdtime()
Gets our neighbor's hold time.
|
org.onlab.packet.IpAddress |
ipAddress()
Gets the IP address of our neighbor.
|
boolean |
isExpired()
Returns whether this neighbor is expired or not.
|
long |
lastRefresh()
Gets the last time we heard a HELLO from this neighbor.
|
org.onlab.packet.MacAddress |
macAddress()
Gets the MAC address of this neighbor.
|
int |
priority()
Gets our neighbor's priority.
|
int |
pruneDelay()
Gets our neighbor's prune delay.
|
void |
refreshTimestamp()
Refreshes this neighbor's last seen timestamp.
|
String |
toString() |
long |
upTime()
Gets the time that we first learnt of this neighbor.
|
public PimNeighbor(org.onlab.packet.IpAddress ipAddress,
org.onlab.packet.MacAddress macAddress,
short holdTime,
int pruneDelay,
int priority,
int genId)
ipAddress - neighbor IP addressmacAddress - neighbor MAC addressholdTime - hold timepruneDelay - prune delaypriority - prioritygenId - generation IDpublic org.onlab.packet.IpAddress ipAddress()
public org.onlab.packet.MacAddress macAddress()
public short holdtime()
public int pruneDelay()
public int priority()
public int generationId()
public long lastRefresh()
public long upTime()
public void refreshTimestamp()
public boolean isExpired()
public static PimNeighbor createPimNeighbor(org.onlab.packet.IpAddress ipAddress, org.onlab.packet.MacAddress macAddress, Collection<org.onlab.packet.pim.PIMHelloOption> opts)
ipAddress - neighbor IP addressmacAddress - neighbor MAC addressopts - options from the PIM HELLO packet