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,
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configured()
Returns true if configured by NetworkConfiguration.
|
boolean |
equals(Object object) |
int |
hashCode() |
MacAddress |
hwAddress()
Returns the MAC address associated with this host (NIC).
|
Set<IpAddress> |
ipAddress()
Returns the IP address associated with this host's MAC.
|
HostLocation |
location()
Returns the location of the host on the network edge.
|
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, 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 MacAddress hwAddress()
HostDescription
hwAddress
in interface HostDescription
public VlanId vlan()
HostDescription
vlan
in interface HostDescription
public HostLocation location()
HostDescription
location
in interface HostDescription
public Set<IpAddress> ipAddress()
HostDescription
ipAddress
in interface HostDescription
public boolean configured()
HostDescription
configured
in interface HostDescription
public int hashCode()
hashCode
in class AbstractDescription
public boolean equals(Object object)
equals
in class AbstractDescription