@Service
public class DistributedHostStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.host.HostEvent,org.onosproject.net.host.HostStoreDelegate>
implements org.onosproject.net.host.HostStore
EventuallyConsistentMap.| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedHostStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
org.onlab.packet.MacAddress |
addPendingHostLocation(org.onosproject.net.HostId hostId,
org.onosproject.net.HostLocation hostLocation) |
org.onosproject.net.host.HostEvent |
createOrUpdateHost(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.HostId hostId,
org.onosproject.net.host.HostDescription hostDescription,
boolean replaceIPs) |
void |
deactivate() |
Set<org.onosproject.net.Host> |
getConnectedHosts(org.onosproject.net.ConnectPoint connectPoint) |
Set<org.onosproject.net.Host> |
getConnectedHosts(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.Host |
getHost(org.onosproject.net.HostId hostId) |
int |
getHostCount() |
Iterable<org.onosproject.net.Host> |
getHosts() |
Set<org.onosproject.net.Host> |
getHosts(org.onlab.packet.IpAddress ip) |
Set<org.onosproject.net.Host> |
getHosts(org.onlab.packet.MacAddress mac) |
Set<org.onosproject.net.Host> |
getHosts(org.onlab.packet.VlanId vlanId) |
org.onosproject.net.host.HostEvent |
removeHost(org.onosproject.net.HostId hostId) |
org.onosproject.net.host.HostEvent |
removeIp(org.onosproject.net.HostId hostId,
org.onlab.packet.IpAddress ipAddress) |
void |
removeLocation(org.onosproject.net.HostId hostId,
org.onosproject.net.HostLocation location) |
void |
removePendingHostLocation(org.onlab.packet.MacAddress probeMac) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Activate public void activate()
@Deactivate public void deactivate()
public org.onosproject.net.host.HostEvent createOrUpdateHost(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.HostId hostId,
org.onosproject.net.host.HostDescription hostDescription,
boolean replaceIPs)
createOrUpdateHost in interface org.onosproject.net.host.HostStorepublic org.onosproject.net.host.HostEvent removeHost(org.onosproject.net.HostId hostId)
removeHost in interface org.onosproject.net.host.HostStorepublic org.onosproject.net.host.HostEvent removeIp(org.onosproject.net.HostId hostId,
org.onlab.packet.IpAddress ipAddress)
removeIp in interface org.onosproject.net.host.HostStorepublic void removeLocation(org.onosproject.net.HostId hostId,
org.onosproject.net.HostLocation location)
removeLocation in interface org.onosproject.net.host.HostStorepublic int getHostCount()
getHostCount in interface org.onosproject.net.host.HostStorepublic Iterable<org.onosproject.net.Host> getHosts()
getHosts in interface org.onosproject.net.host.HostStorepublic org.onosproject.net.Host getHost(org.onosproject.net.HostId hostId)
getHost in interface org.onosproject.net.host.HostStorepublic Set<org.onosproject.net.Host> getHosts(org.onlab.packet.VlanId vlanId)
getHosts in interface org.onosproject.net.host.HostStorepublic Set<org.onosproject.net.Host> getHosts(org.onlab.packet.MacAddress mac)
getHosts in interface org.onosproject.net.host.HostStorepublic Set<org.onosproject.net.Host> getHosts(org.onlab.packet.IpAddress ip)
getHosts in interface org.onosproject.net.host.HostStorepublic Set<org.onosproject.net.Host> getConnectedHosts(org.onosproject.net.ConnectPoint connectPoint)
getConnectedHosts in interface org.onosproject.net.host.HostStorepublic Set<org.onosproject.net.Host> getConnectedHosts(org.onosproject.net.DeviceId deviceId)
getConnectedHosts in interface org.onosproject.net.host.HostStorepublic org.onlab.packet.MacAddress addPendingHostLocation(org.onosproject.net.HostId hostId,
org.onosproject.net.HostLocation hostLocation)
addPendingHostLocation in interface org.onosproject.net.host.HostStorepublic void removePendingHostLocation(org.onlab.packet.MacAddress probeMac)
removePendingHostLocation in interface org.onosproject.net.host.HostStore