public class DefaultHostDescription extends AbstractDescription implements HostDescription
| Constructor and Description |
|---|
DefaultHostDescription(HostDescription base,
SparseAnnotations annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
HostLocation location,
boolean configured,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
HostLocation location,
IpAddress ip,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
HostLocation location,
Set<IpAddress> ip,
boolean configured,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
HostLocation location,
Set<IpAddress> ip,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
HostLocation location,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
Set<HostLocation> locations,
Set<IpAddress> ip,
boolean configured,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
Set<HostLocation> locations,
Set<IpAddress> ip,
VlanId innerVlan,
EthType tpid,
boolean configured,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configured()
Returns true if configured by NetworkConfiguration.
|
static DefaultHostDescription |
copyReplacingAnnotation(HostDescription base,
SparseAnnotations annotations)
Creates a host description using the supplied information.
|
boolean |
equals(Object object) |
int |
hashCode() |
MacAddress |
hwAddress()
Returns the MAC address associated with this host (NIC).
|
VlanId |
innerVlan()
Returns the inner VLAN associated with this host.
|
Set<IpAddress> |
ipAddress()
Returns the IP address associated with this host's MAC.
|
HostLocation |
location()
Returns the most recent location of the host on the network edge.
|
Set<HostLocation> |
locations()
Returns all locations of the host on the network edge.
|
String |
toString() |
EthType |
tpid()
Returns the TPID of the outermost VLAN associated with this host.
|
VlanId |
vlan()
Returns the VLAN associated with this host.
|
annotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationspublic DefaultHostDescription(MacAddress mac, VlanId vlan, HostLocation location, SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationannotations - optional key/value annotations mappublic DefaultHostDescription(MacAddress mac, VlanId vlan, HostLocation location, IpAddress ip, SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationip - host IP addressannotations - optional key/value annotations mappublic DefaultHostDescription(MacAddress mac, VlanId vlan, HostLocation location, Set<IpAddress> ip, SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationip - host IP addressesannotations - optional key/value annotations mappublic DefaultHostDescription(MacAddress mac, VlanId vlan, HostLocation location, boolean configured, SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationconfigured - true if configured via NetworkConfigurationannotations - optional key/value annotations mappublic DefaultHostDescription(MacAddress mac, VlanId vlan, HostLocation location, Set<IpAddress> ip, boolean configured, SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationip - host IP addressconfigured - true if configured via NetworkConfigurationannotations - optional key/value annotations mappublic DefaultHostDescription(MacAddress mac, VlanId vlan, Set<HostLocation> locations, Set<IpAddress> ip, boolean configured, SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocations - host locationsip - host IP addressconfigured - true if configured via NetworkConfigurationannotations - optional key/value annotations mappublic DefaultHostDescription(MacAddress mac, VlanId vlan, Set<HostLocation> locations, Set<IpAddress> ip, VlanId innerVlan, EthType tpid, boolean configured, SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocations - host locationsip - host IP addressinnerVlan - host inner VLAN identifiertpid - outer TPID of a hostconfigured - true if configured via NetworkConfigurationannotations - optional key/value annotations mappublic DefaultHostDescription(HostDescription base, SparseAnnotations annotations)
base - HostDescription to basic informationannotations - Annotations to use.public static DefaultHostDescription copyReplacingAnnotation(HostDescription base, SparseAnnotations annotations)
base - baseannotations - annotationspublic MacAddress hwAddress()
HostDescriptionhwAddress in interface HostDescriptionpublic VlanId vlan()
HostDescriptionvlan in interface HostDescriptionpublic HostLocation location()
HostDescriptionlocation in interface HostDescriptionpublic Set<HostLocation> locations()
HostDescriptionlocations in interface HostDescriptionpublic Set<IpAddress> ipAddress()
HostDescriptionipAddress in interface HostDescriptionpublic boolean configured()
HostDescriptionconfigured in interface HostDescriptionpublic VlanId innerVlan()
HostDescriptioninnerVlan in interface HostDescriptionpublic EthType tpid()
HostDescriptiontpid in interface HostDescriptionpublic int hashCode()
hashCode in class AbstractDescriptionpublic boolean equals(Object object)
equals in class AbstractDescription