public interface HostService extends ListenerService<HostEvent,HostListener>
Modifier and Type | Method and Description |
---|---|
java.util.Set<Host> |
getConnectedHosts(ConnectPoint connectPoint)
Returns the set of hosts whose most recent location is the specified
connection point.
|
java.util.Set<Host> |
getConnectedHosts(DeviceId deviceId)
Returns the set of hosts whose most recent location is the specified
infrastructure device.
|
Host |
getHost(HostId hostId)
Returns the host with the specified identifier.
|
int |
getHostCount()
Returns the number of end-station hosts known to the system.
|
java.lang.Iterable<Host> |
getHosts()
Returns a collection of all end-station hosts.
|
java.util.Set<Host> |
getHostsByIp(IpAddress ip)
Returns the set of hosts that have the specified IP address.
|
java.util.Set<Host> |
getHostsByMac(MacAddress mac)
Returns the set of hosts that have the specified MAC address.
|
java.util.Set<Host> |
getHostsByVlan(VlanId vlanId)
Returns the set of hosts that belong to the specified VLAN.
|
void |
requestMac(IpAddress ip)
Requests the host service to resolve the MAC address for the given IP
address.
|
void |
startMonitoringIp(IpAddress ip)
Requests the host service to monitor hosts with the given IP address and
notify listeners of changes.
|
void |
stopMonitoringIp(IpAddress ip)
Stops the host service from monitoring an IP address.
|
addListener, removeListener
int getHostCount()
java.lang.Iterable<Host> getHosts()
Host getHost(HostId hostId)
hostId
- host identifierjava.util.Set<Host> getHostsByVlan(VlanId vlanId)
vlanId
- vlan identifierjava.util.Set<Host> getHostsByMac(MacAddress mac)
mac
- mac addressjava.util.Set<Host> getHostsByIp(IpAddress ip)
ip
- ip addressjava.util.Set<Host> getConnectedHosts(ConnectPoint connectPoint)
connectPoint
- connection pointjava.util.Set<Host> getConnectedHosts(DeviceId deviceId)
deviceId
- device identifiervoid startMonitoringIp(IpAddress ip)
ip
- IP address of the host to monitorvoid stopMonitoringIp(IpAddress ip)
ip
- IP address to stop monitoringvoid requestMac(IpAddress ip)
ip
- IP address to find the MAC address for