Package org.onosproject.net.host
Interface HostProviderService
-
- All Superinterfaces:
ProviderService<HostProvider>
public interface HostProviderService extends ProviderService<HostProvider>
Means of conveying host information to the core.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddLocationToHost(HostId hostId, HostLocation location)Notifies the core when a location is associated with a host.voidhostDetected(HostId hostId, HostDescription hostDescription, boolean replaceIps)Notifies the core when a host has been detected on a network along with information that identifies the host location.voidhostVanished(HostId hostId)Notifies the core when a host is no longer detected on a network.voidremoveIpFromHost(HostId hostId, IpAddress ipAddress)Notifies the core when an IP is no longer associated with a host.voidremoveLocationFromHost(HostId hostId, HostLocation location)Notifies the core when a location is no longer associated with a host.-
Methods inherited from interface org.onosproject.net.provider.ProviderService
provider
-
-
-
-
Method Detail
-
hostDetected
void hostDetected(HostId hostId, HostDescription hostDescription, boolean replaceIps)
Notifies the core when a host has been detected on a network along with information that identifies the host location.- Parameters:
hostId- id of the host that been detectedhostDescription- description of host and its locationreplaceIps- replace IP set if true, merge IP set otherwise
-
hostVanished
void hostVanished(HostId hostId)
Notifies the core when a host is no longer detected on a network.- Parameters:
hostId- id of the host that vanished
-
removeIpFromHost
void removeIpFromHost(HostId hostId, IpAddress ipAddress)
Notifies the core when an IP is no longer associated with a host.- Parameters:
hostId- id of the hostipAddress- ip address of host that vanished
-
addLocationToHost
default void addLocationToHost(HostId hostId, HostLocation location)
Notifies the core when a location is associated with a host.- Parameters:
hostId- id of the hostlocation- location of host that gets discovered
-
removeLocationFromHost
void removeLocationFromHost(HostId hostId, HostLocation location)
Notifies the core when a location is no longer associated with a host.- Parameters:
hostId- id of the hostlocation- location of host that vanished
-
-