public class DefaultHost extends AbstractElement implements Host
AbstractProjectableModel.AnnotationDriverData
id
NO_DRIVER, NO_DRIVER_SERVICE
Constructor and Description |
---|
DefaultHost(ProviderId providerId,
HostId id,
MacAddress mac,
VlanId vlan,
HostLocation location,
java.util.Set<IpAddress> ips,
Annotations... annotations)
Creates an end-station host using the supplied information.
|
DefaultHost(ProviderId providerId,
HostId id,
MacAddress mac,
VlanId vlan,
HostLocation location,
java.util.Set<IpAddress> ips,
boolean configured,
Annotations... annotations)
Creates an end-station host using the supplied information.
|
DefaultHost(ProviderId providerId,
HostId id,
MacAddress mac,
VlanId vlan,
java.util.Set<HostLocation> locations,
java.util.Set<IpAddress> ips,
boolean configured,
Annotations... annotations)
Creates an end-station host using the supplied information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configured()
Returns true if configured by NetworkConfiguration.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
HostId |
id()
Host identification.
|
java.util.Set<IpAddress> |
ipAddresses()
Returns an unmodifiable set of IP addresses currently bound to the
host MAC address.
|
HostLocation |
location()
Returns the most recent host location where the host attaches to the
network edge.
|
java.util.Set<HostLocation> |
locations()
Returns all host locations where the host attaches to the network edge.
|
MacAddress |
mac()
Returns the host MAC address.
|
java.lang.String |
toString() |
VlanId |
vlan()
Returns the VLAN ID tied to this host.
|
as, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverService
providerId
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
providerId
as, is, project
public DefaultHost(ProviderId providerId, HostId id, MacAddress mac, VlanId vlan, HostLocation location, java.util.Set<IpAddress> ips, Annotations... annotations)
providerId
- provider identityid
- host identifiermac
- host MAC addressvlan
- host VLAN identifierlocation
- host locationips
- host IP addressesannotations
- optional key/value annotationspublic DefaultHost(ProviderId providerId, HostId id, MacAddress mac, VlanId vlan, HostLocation location, java.util.Set<IpAddress> ips, boolean configured, Annotations... annotations)
providerId
- provider identityid
- host identifiermac
- host MAC addressvlan
- host VLAN identifierlocation
- host locationips
- host IP addressesconfigured
- true if configured via NetworkConfigurationannotations
- optional key/value annotationspublic DefaultHost(ProviderId providerId, HostId id, MacAddress mac, VlanId vlan, java.util.Set<HostLocation> locations, java.util.Set<IpAddress> ips, boolean configured, Annotations... annotations)
providerId
- provider identityid
- host identifiermac
- host MAC addressvlan
- host VLAN identifierlocations
- set of host locationsips
- host IP addressesconfigured
- true if configured via NetworkConfigurationannotations
- optional key/value annotationspublic MacAddress mac()
Host
public java.util.Set<IpAddress> ipAddresses()
ipAddresses
in interface Host
public HostLocation location()
Host
public java.util.Set<HostLocation> locations()
Host
public VlanId vlan()
Host
public boolean configured()
Host
configured
in interface Host
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object