public interface LinkInfo
| Modifier and Type | Method and Description |
|---|---|
Set<PortState> |
dstPortState()
Returns the state of the destination port of the associated link.
|
long |
multicastDiscoveryTime()
Returns the time at which the direct link was discovered by means other
than standard LLDP packet.
|
Set<PortState> |
srcPortState()
Returns the state of the source port of the associated link.
|
Link.Type |
type()
Returns the type of the associated link, i.e.
|
long |
unicastDiscoveryTime()
Returns the time at which the direct link was discovered.
|
void |
updateDstPortState(Set<PortState> portState)
Updates the state of the destination port of the associated link.
|
void |
updateMulticastDiscoveryTime(long multicastDiscoveryTime)
Updates the time at which the direct link was discovered by means other
than standard LLDP packet, with the specified value.
|
void |
updateSrcPortState(Set<PortState> portState)
Updates the state of the source port of the associated link.
|
void |
updateUnicastDiscoveryTime(long unicastDiscoveryTime)
Updates the time at which the direct link was discovered with the
specified value.
|
long unicastDiscoveryTime()
The term unicast may be slightly misleading here; the standard LLDP destination MAC address that is currently used is a multicast address, however since this address is specified in the standard, we expect all switches to absorb the standard packet, thus making the standard LLDP packet describe only one link.
long multicastDiscoveryTime()
Set<PortState> srcPortState()
Set<PortState> dstPortState()
Link.Type type()
void updateUnicastDiscoveryTime(long unicastDiscoveryTime)
unicastDiscoveryTime - the time of discovery to setvoid updateMulticastDiscoveryTime(long multicastDiscoveryTime)
multicastDiscoveryTime - the time of discovery to setvoid updateSrcPortState(Set<PortState> portState)
portState - the state of the source portNullPointerException - if portState is nullvoid updateDstPortState(Set<PortState> portState)
portState - the state of the destination portNullPointerException - if portState is nullCopyright © 2014. All Rights Reserved.