public interface HostStore extends Store<HostEvent,HostStoreDelegate>
Modifier and Type | Method and Description |
---|---|
default MacAddress |
addPendingHostLocation(HostId hostId,
HostLocation hostLocation)
Notifies HostStore the beginning of pending host location verification and
retrieves the unique MAC address for the probe.
|
HostEvent |
createOrUpdateHost(ProviderId providerId,
HostId hostId,
HostDescription hostDescription,
boolean replaceIps)
Creates a new host or updates the existing one based on the specified
description.
|
java.util.Set<Host> |
getConnectedHosts(ConnectPoint connectPoint)
Returns the set of hosts whose location falls on the given connection point.
|
java.util.Set<Host> |
getConnectedHosts(DeviceId deviceId)
Returns the set of hosts whose location falls on the given device.
|
Host |
getHost(HostId hostId)
Returns the host with the specified identifer.
|
int |
getHostCount()
Returns the number of hosts in the store.
|
java.lang.Iterable<Host> |
getHosts()
Returns a collection of all hosts in the store.
|
java.util.Set<Host> |
getHosts(IpAddress ip)
Returns the set of hosts with the specified IP address.
|
java.util.Set<Host> |
getHosts(MacAddress mac)
Returns the set of hosts with the specified MAC address.
|
java.util.Set<Host> |
getHosts(VlanId vlanId)
Returns the set of all hosts within the specified VLAN.
|
HostEvent |
removeHost(HostId hostId)
Removes the specified host from the inventory.
|
HostEvent |
removeIp(HostId hostId,
IpAddress ipAddress)
Removes the specified ip from the host entry.
|
void |
removeLocation(HostId hostId,
HostLocation location)
Removes the specified location from the host entry.
|
default void |
removePendingHostLocation(MacAddress probeMac)
Notifies HostStore the end of pending host location verification.
|
hasDelegate, setDelegate, unsetDelegate
HostEvent createOrUpdateHost(ProviderId providerId, HostId hostId, HostDescription hostDescription, boolean replaceIps)
providerId
- provider identificationhostId
- host identificationhostDescription
- host description datareplaceIps
- replace IP set if true, merge IP set otherwiseHostEvent removeHost(HostId hostId)
hostId
- host identificationHostEvent removeIp(HostId hostId, IpAddress ipAddress)
hostId
- host identificationipAddress
- ipAddress to be removedvoid removeLocation(HostId hostId, HostLocation location)
hostId
- host identificationlocation
- location to be removedint getHostCount()
java.lang.Iterable<Host> getHosts()
Host getHost(HostId hostId)
hostId
- host identificationjava.util.Set<Host> getHosts(VlanId vlanId)
vlanId
- vlan idjava.util.Set<Host> getHosts(MacAddress mac)
mac
- mac addressjava.util.Set<Host> getHosts(IpAddress ip)
ip
- ip addressjava.util.Set<Host> getConnectedHosts(ConnectPoint connectPoint)
connectPoint
- connection pointjava.util.Set<Host> getConnectedHosts(DeviceId deviceId)
deviceId
- infrastructure device identifierdefault MacAddress addPendingHostLocation(HostId hostId, HostLocation hostLocation)
hostId
- ID of the hosthostLocation
- the host location that is under verificationdefault void removePendingHostLocation(MacAddress probeMac)
probeMac
- the source MAC address ONOS uses to probe the host