public interface HostStore extends Store<HostEvent,HostStoreDelegate>
| Modifier and Type | Method and Description | 
|---|---|
default MacAddress | 
addPendingHostLocation(HostId hostId,
                      ConnectPoint connectPoint,
                      ProbeMode probeMode)
Notifies HostStore the beginning of pending host location verification and
 retrieves the unique MAC address for the probe. 
 | 
void | 
appendLocation(HostId hostId,
              HostLocation location)
Append the specified location to the host entry. 
 | 
HostEvent | 
createOrUpdateHost(ProviderId providerId,
                  HostId hostId,
                  HostDescription hostDescription,
                  boolean replaceIps)
Creates a new host or updates the existing one based on the specified
 description. 
 | 
Set<Host> | 
getConnectedHosts(ConnectPoint connectPoint)
Returns the set of hosts whose location falls on the given connection point. 
 | 
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. 
 | 
Iterable<Host> | 
getHosts()
Returns a collection of all hosts in the store. 
 | 
Set<Host> | 
getHosts(IpAddress ip)
Returns the set of hosts with the specified IP address. 
 | 
Set<Host> | 
getHosts(MacAddress mac)
Returns the set of hosts with the specified MAC address. 
 | 
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, unsetDelegateHostEvent 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 appendLocation(HostId hostId, HostLocation location)
hostId - host identificationlocation - location to be addedvoid removeLocation(HostId hostId, HostLocation location)
hostId - host identificationlocation - location to be removedint getHostCount()
Iterable<Host> getHosts()
Host getHost(HostId hostId)
hostId - host identificationSet<Host> getHosts(VlanId vlanId)
vlanId - vlan idSet<Host> getHosts(MacAddress mac)
mac - mac addressSet<Host> getHosts(IpAddress ip)
ip - ip addressSet<Host> getConnectedHosts(ConnectPoint connectPoint)
connectPoint - connection pointSet<Host> getConnectedHosts(DeviceId deviceId)
deviceId - infrastructure device identifierdefault MacAddress addPendingHostLocation(HostId hostId, ConnectPoint connectPoint, ProbeMode probeMode)
hostId - ID of the hostconnectPoint - the connect point that is under verificationprobeMode - probe modedefault void removePendingHostLocation(MacAddress probeMac)
probeMac - the source MAC address ONOS uses to probe the host