public interface HostService extends ListenerService<HostEvent,HostListener>
Modifier and Type | Method and Description |
---|---|
Set<Host> |
getConnectedHosts(ConnectPoint connectPoint)
Returns the set of hosts whose most recent location is the specified
connection point.
|
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.
|
Iterable<Host> |
getHosts()
Returns a collection of all end-station hosts.
|
Set<Host> |
getHostsByIp(IpAddress ip)
Returns the set of hosts that have the specified IP address.
|
Set<Host> |
getHostsByMac(MacAddress mac)
Returns the set of hosts that have the specified MAC address.
|
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()
Iterable<Host> getHosts()
Host getHost(HostId hostId)
hostId
- host identifierSet<Host> getHostsByVlan(VlanId vlanId)
vlanId
- vlan identifierSet<Host> getHostsByMac(MacAddress mac)
mac
- mac addressSet<Host> getHostsByIp(IpAddress ip)
ip
- ip addressSet<Host> getConnectedHosts(ConnectPoint connectPoint)
connectPoint
- connection pointSet<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