@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.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() |
java.util.Set<org.onosproject.net.Host> |
getConnectedHosts(org.onosproject.net.ConnectPoint connectPoint) |
java.util.Set<org.onosproject.net.Host> |
getConnectedHosts(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.Host |
getHost(org.onosproject.net.HostId hostId) |
int |
getHostCount() |
java.lang.Iterable<org.onosproject.net.Host> |
getHosts() |
java.util.Set<org.onosproject.net.Host> |
getHosts(org.onlab.packet.IpAddress ip) |
java.util.Set<org.onosproject.net.Host> |
getHosts(org.onlab.packet.MacAddress mac) |
java.util.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) |
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 int getHostCount()
getHostCount in interface org.onosproject.net.host.HostStorepublic java.lang.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 java.util.Set<org.onosproject.net.Host> getHosts(org.onlab.packet.VlanId vlanId)
getHosts in interface org.onosproject.net.host.HostStorepublic java.util.Set<org.onosproject.net.Host> getHosts(org.onlab.packet.MacAddress mac)
getHosts in interface org.onosproject.net.host.HostStorepublic java.util.Set<org.onosproject.net.Host> getHosts(org.onlab.packet.IpAddress ip)
getHosts in interface org.onosproject.net.host.HostStorepublic java.util.Set<org.onosproject.net.Host> getConnectedHosts(org.onosproject.net.ConnectPoint connectPoint)
getConnectedHosts in interface org.onosproject.net.host.HostStorepublic java.util.Set<org.onosproject.net.Host> getConnectedHosts(org.onosproject.net.DeviceId deviceId)
getConnectedHosts in interface org.onosproject.net.host.HostStore