public class Entity extends Object implements Comparable<Entity>
| Modifier and Type | Field and Description |
|---|---|
protected Date |
activeSince
The time between
activeSince and
lastSeenTimestamp is a period of activity for this entity
where it was observed repeatedly. |
protected static int |
ACTIVITY_TIMEOUT
Timeout for computing
activeSince. |
protected Integer |
ipv4Address
The IP address associated with this entity, or null if no IP learned from
the network observation associated with this entity
|
protected Date |
lastSeenTimestamp
The last time we observed this entity on the network
|
protected long |
macAddress
The MAC address associated with this entity
|
protected Short |
vlan
The VLAN tag on this entity, or null if untagged
|
| Constructor and Description |
|---|
Entity(long macAddress,
Short vlan,
Integer ipv4Address,
org.opendaylight.controller.sal.core.NodeConnector port,
Date lastSeenTimestamp)
Create a new entity
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Entity o) |
boolean |
equals(Object obj) |
Date |
getActiveSince() |
Integer |
getIpv4Address() |
Date |
getLastSeenTimestamp() |
long |
getMacAddress() |
org.opendaylight.controller.sal.core.NodeConnector |
getPort() |
Short |
getVlan() |
int |
hashCode() |
boolean |
hasSwitchPort() |
void |
setActiveSince(Date activeSince) |
void |
setLastSeenTimestamp(Date lastSeenTimestamp)
Set the last seen timestamp and also update
activeSince if
appropriate |
HostNodeConnector |
toHostNodeConnector() |
String |
toString() |
protected static int ACTIVITY_TIMEOUT
activeSince.Entity#activeSince}protected long macAddress
protected Integer ipv4Address
protected Short vlan
protected Date lastSeenTimestamp
protected Date activeSince
activeSince and
lastSeenTimestamp is a period of activity for this entity
where it was observed repeatedly. If, when the entity is observed, the is
longer ago than the activity timeout, lastSeenTimestamp
and activeSince will be set to the current time.public long getMacAddress()
public Integer getIpv4Address()
public Short getVlan()
public org.opendaylight.controller.sal.core.NodeConnector getPort()
public boolean hasSwitchPort()
public Date getLastSeenTimestamp()
public void setLastSeenTimestamp(Date lastSeenTimestamp)
activeSince if
appropriatelastSeenTimestamp - the new last seen timestampEntity#activeSince}public Date getActiveSince()
public void setActiveSince(Date activeSince)
public HostNodeConnector toHostNodeConnector()
public int compareTo(Entity o)
compareTo in interface Comparable<Entity>Copyright © 2015. All Rights Reserved.