public class DefaultHostDescription extends AbstractDescription implements HostDescription
Constructor and Description |
---|
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,
java.util.Set<IpAddress> ip,
boolean configured,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(MacAddress mac,
VlanId vlan,
HostLocation location,
java.util.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,
java.util.Set<HostLocation> locations,
java.util.Set<IpAddress> ip,
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.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
MacAddress |
hwAddress()
Returns the MAC address associated with this host (NIC).
|
java.util.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.
|
java.util.Set<HostLocation> |
locations()
Returns all locations of the host on the network edge.
|
java.lang.String |
toString() |
VlanId |
vlan()
Returns the VLAN associated with this host.
|
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
public 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, java.util.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, java.util.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, java.util.Set<HostLocation> locations, java.util.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 MacAddress hwAddress()
HostDescription
hwAddress
in interface HostDescription
public VlanId vlan()
HostDescription
vlan
in interface HostDescription
public HostLocation location()
HostDescription
location
in interface HostDescription
public java.util.Set<HostLocation> locations()
HostDescription
locations
in interface HostDescription
public java.util.Set<IpAddress> ipAddress()
HostDescription
ipAddress
in interface HostDescription
public boolean configured()
HostDescription
configured
in interface HostDescription
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class AbstractDescription
public boolean equals(java.lang.Object object)
equals
in class AbstractDescription