public class LinkInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer |
dstPortState |
protected java.lang.Long |
firstSeenTime |
protected java.lang.Long |
lastBddpReceivedTime |
protected java.lang.Long |
lastLldpReceivedTime |
protected java.lang.Integer |
srcPortState |
Constructor and Description |
---|
LinkInfo(java.lang.Long firstSeenTime,
java.lang.Long lastLldpReceivedTime,
java.lang.Long lastBddpReceivedTime,
int srcPortState,
int dstPortState) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getDstPortState() |
java.lang.Long |
getFirstSeenTime() |
ILinkDiscovery.LinkType |
getLinkType() |
java.lang.Long |
getMulticastValidTime()
returns
lastBddpReceivedTime . |
java.lang.Integer |
getSrcPortState() |
java.lang.Long |
getUnicastValidTime()
returns
lastLldpReceivedTime . |
int |
hashCode() |
boolean |
linkStpBlocked()
The port states stored here are topology's last knowledge of
the state of the port.
|
void |
setDstPortState(int dstPortState) |
void |
setFirstSeenTime(java.lang.Long firstSeenTime) |
void |
setMulticastValidTime(java.lang.Long multicastValidTime) |
void |
setSrcPortState(java.lang.Integer srcPortState) |
void |
setUnicastValidTime(java.lang.Long unicastValidTime) |
java.lang.String |
toString() |
protected java.lang.Integer srcPortState
protected java.lang.Integer dstPortState
protected java.lang.Long firstSeenTime
protected java.lang.Long lastLldpReceivedTime
protected java.lang.Long lastBddpReceivedTime
public LinkInfo(java.lang.Long firstSeenTime, java.lang.Long lastLldpReceivedTime, java.lang.Long lastBddpReceivedTime, int srcPortState, int dstPortState)
public boolean linkStpBlocked()
public java.lang.Long getFirstSeenTime()
public void setFirstSeenTime(java.lang.Long firstSeenTime)
public java.lang.Long getUnicastValidTime()
lastLldpReceivedTime
.public void setUnicastValidTime(java.lang.Long unicastValidTime)
public java.lang.Long getMulticastValidTime()
lastBddpReceivedTime
.public void setMulticastValidTime(java.lang.Long multicastValidTime)
public java.lang.Integer getSrcPortState()
public void setSrcPortState(java.lang.Integer srcPortState)
public java.lang.Integer getDstPortState()
public void setDstPortState(int dstPortState)
public ILinkDiscovery.LinkType getLinkType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object