public class VirtualNetworkHostManager extends org.onosproject.event.AbstractListenerManager<org.onosproject.net.host.HostEvent,org.onosproject.net.host.HostListener> implements org.onosproject.net.host.HostService, VnetService
| Constructor and Description |
|---|
VirtualNetworkHostManager(VirtualNetworkService virtualNetworkManager,
VirtualNetwork network)
Creates a new virtual network host service object.
|
| Modifier and Type | Method and Description |
|---|---|
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> |
getHostsByIp(org.onlab.packet.IpAddress ip) |
Set<org.onosproject.net.Host> |
getHostsByMac(org.onlab.packet.MacAddress mac) |
Set<org.onosproject.net.Host> |
getHostsByVlan(org.onlab.packet.VlanId vlanId) |
VirtualNetwork |
network() |
void |
requestMac(org.onlab.packet.IpAddress ip) |
void |
startMonitoringIp(org.onlab.packet.IpAddress ip) |
void |
stopMonitoringIp(org.onlab.packet.IpAddress ip) |
addListener, bindEventDispatcher, post, removeListener, unbindEventDispatcherpublic VirtualNetworkHostManager(VirtualNetworkService virtualNetworkManager, VirtualNetwork network)
virtualNetworkManager - virtual network manager servicenetwork - virtual networkpublic int getHostCount()
getHostCount in interface org.onosproject.net.host.HostServicepublic Iterable<org.onosproject.net.Host> getHosts()
getHosts in interface org.onosproject.net.host.HostServicepublic org.onosproject.net.Host getHost(org.onosproject.net.HostId hostId)
getHost in interface org.onosproject.net.host.HostServicepublic Set<org.onosproject.net.Host> getHostsByVlan(org.onlab.packet.VlanId vlanId)
getHostsByVlan in interface org.onosproject.net.host.HostServicepublic Set<org.onosproject.net.Host> getHostsByMac(org.onlab.packet.MacAddress mac)
getHostsByMac in interface org.onosproject.net.host.HostServicepublic Set<org.onosproject.net.Host> getHostsByIp(org.onlab.packet.IpAddress ip)
getHostsByIp in interface org.onosproject.net.host.HostServicepublic Set<org.onosproject.net.Host> getConnectedHosts(org.onosproject.net.ConnectPoint connectPoint)
getConnectedHosts in interface org.onosproject.net.host.HostServicepublic Set<org.onosproject.net.Host> getConnectedHosts(org.onosproject.net.DeviceId deviceId)
getConnectedHosts in interface org.onosproject.net.host.HostServicepublic void startMonitoringIp(org.onlab.packet.IpAddress ip)
startMonitoringIp in interface org.onosproject.net.host.HostServicepublic void stopMonitoringIp(org.onlab.packet.IpAddress ip)
stopMonitoringIp in interface org.onosproject.net.host.HostServicepublic void requestMac(org.onlab.packet.IpAddress ip)
requestMac in interface org.onosproject.net.host.HostServicepublic VirtualNetwork network()
network in interface VnetService