public class VirtualNetworkDeviceManager extends AbstractVirtualListenerManager<org.onosproject.net.device.DeviceEvent,org.onosproject.net.device.DeviceListener> implements org.onosproject.net.device.DeviceService
eventDispatcher, manager, networkId, serviceDirectory| Constructor and Description |
|---|
VirtualNetworkDeviceManager(VirtualNetworkService virtualNetworkManager,
NetworkId networkId)
Creates a new VirtualNetworkDeviceService object.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<org.onosproject.net.Device> |
getAvailableDevices() |
Iterable<org.onosproject.net.Device> |
getAvailableDevices(org.onosproject.net.Device.Type type) |
org.onosproject.net.device.PortStatistics |
getDeltaStatisticsForPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber) |
org.onosproject.net.Device |
getDevice(org.onosproject.net.DeviceId deviceId) |
int |
getDeviceCount() |
Iterable<org.onosproject.net.Device> |
getDevices() |
Iterable<org.onosproject.net.Device> |
getDevices(org.onosproject.net.Device.Type type) |
org.onosproject.net.Port |
getPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber) |
List<org.onosproject.net.device.PortStatistics> |
getPortDeltaStatistics(org.onosproject.net.DeviceId deviceId) |
List<org.onosproject.net.Port> |
getPorts(org.onosproject.net.DeviceId deviceId) |
List<org.onosproject.net.device.PortStatistics> |
getPortStatistics(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.MastershipRole |
getRole(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.device.PortStatistics |
getStatisticsForPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber) |
boolean |
isAvailable(org.onosproject.net.DeviceId deviceId) |
String |
localStatus(org.onosproject.net.DeviceId deviceId) |
addListener, networkId, post, removeListenerpublic VirtualNetworkDeviceManager(VirtualNetworkService virtualNetworkManager, NetworkId networkId)
virtualNetworkManager - virtual network manager servicenetworkId - a virtual network identifierpublic int getDeviceCount()
getDeviceCount in interface org.onosproject.net.device.DeviceServicepublic Iterable<org.onosproject.net.Device> getDevices()
getDevices in interface org.onosproject.net.device.DeviceServicepublic Iterable<org.onosproject.net.Device> getDevices(org.onosproject.net.Device.Type type)
getDevices in interface org.onosproject.net.device.DeviceServicepublic Iterable<org.onosproject.net.Device> getAvailableDevices()
getAvailableDevices in interface org.onosproject.net.device.DeviceServicepublic Iterable<org.onosproject.net.Device> getAvailableDevices(org.onosproject.net.Device.Type type)
getAvailableDevices in interface org.onosproject.net.device.DeviceServicepublic org.onosproject.net.Device getDevice(org.onosproject.net.DeviceId deviceId)
getDevice in interface org.onosproject.net.device.DeviceServicepublic org.onosproject.net.MastershipRole getRole(org.onosproject.net.DeviceId deviceId)
getRole in interface org.onosproject.net.device.DeviceServicepublic List<org.onosproject.net.Port> getPorts(org.onosproject.net.DeviceId deviceId)
getPorts in interface org.onosproject.net.device.DeviceServicepublic List<org.onosproject.net.device.PortStatistics> getPortStatistics(org.onosproject.net.DeviceId deviceId)
getPortStatistics in interface org.onosproject.net.device.DeviceServicepublic List<org.onosproject.net.device.PortStatistics> getPortDeltaStatistics(org.onosproject.net.DeviceId deviceId)
getPortDeltaStatistics in interface org.onosproject.net.device.DeviceServicepublic org.onosproject.net.device.PortStatistics getStatisticsForPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber)
getStatisticsForPort in interface org.onosproject.net.device.DeviceServicepublic org.onosproject.net.device.PortStatistics getDeltaStatisticsForPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber)
getDeltaStatisticsForPort in interface org.onosproject.net.device.DeviceServicepublic org.onosproject.net.Port getPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber)
getPort in interface org.onosproject.net.device.DeviceServicepublic boolean isAvailable(org.onosproject.net.DeviceId deviceId)
isAvailable in interface org.onosproject.net.device.DeviceServicepublic String localStatus(org.onosproject.net.DeviceId deviceId)
localStatus in interface org.onosproject.net.device.DeviceService