@Service
public class SimpleDeviceStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.device.DeviceEvent,org.onosproject.net.device.DeviceStoreDelegate>
implements org.onosproject.net.device.DeviceStore
| Modifier and Type | Field and Description |
|---|---|
static String |
DEVICE_NOT_FOUND |
| Constructor and Description |
|---|
SimpleDeviceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
org.onosproject.net.device.DeviceEvent |
createOrUpdateDevice(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.device.DeviceDescription deviceDescription) |
void |
deactivate() |
Iterable<org.onosproject.net.Device> |
getAvailableDevices() |
org.onosproject.net.Device |
getDevice(org.onosproject.net.DeviceId deviceId) |
int |
getDeviceCount() |
Iterable<org.onosproject.net.Device> |
getDevices() |
org.onosproject.net.Port |
getPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber) |
List<org.onosproject.net.Port> |
getPorts(org.onosproject.net.DeviceId deviceId) |
List<org.onosproject.net.device.PortStatistics> |
getPortStatistics(org.onosproject.net.DeviceId deviceId) |
boolean |
isAvailable(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.device.DeviceEvent |
markOffline(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.device.DeviceEvent |
removeDevice(org.onosproject.net.DeviceId deviceId) |
List<org.onosproject.net.device.DeviceEvent> |
updatePorts(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.DeviceId deviceId,
List<org.onosproject.net.device.PortDescription> portDescriptions) |
org.onosproject.net.device.DeviceEvent |
updatePortStatistics(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.DeviceId deviceId,
Collection<org.onosproject.net.device.PortStatistics> portStats) |
org.onosproject.net.device.DeviceEvent |
updatePortStatus(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.device.PortDescription portDescription) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegatepublic static final String DEVICE_NOT_FOUND
@Activate public void activate()
@Deactivate public void deactivate()
public int getDeviceCount()
getDeviceCount in interface org.onosproject.net.device.DeviceStorepublic Iterable<org.onosproject.net.Device> getDevices()
getDevices in interface org.onosproject.net.device.DeviceStorepublic Iterable<org.onosproject.net.Device> getAvailableDevices()
getAvailableDevices in interface org.onosproject.net.device.DeviceStorepublic org.onosproject.net.Device getDevice(org.onosproject.net.DeviceId deviceId)
getDevice in interface org.onosproject.net.device.DeviceStorepublic org.onosproject.net.device.DeviceEvent createOrUpdateDevice(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.device.DeviceDescription deviceDescription)
createOrUpdateDevice in interface org.onosproject.net.device.DeviceStorepublic org.onosproject.net.device.DeviceEvent markOffline(org.onosproject.net.DeviceId deviceId)
markOffline in interface org.onosproject.net.device.DeviceStorepublic List<org.onosproject.net.device.DeviceEvent> updatePorts(org.onosproject.net.provider.ProviderId providerId, org.onosproject.net.DeviceId deviceId, List<org.onosproject.net.device.PortDescription> portDescriptions)
updatePorts in interface org.onosproject.net.device.DeviceStorepublic org.onosproject.net.device.DeviceEvent updatePortStatus(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.device.PortDescription portDescription)
updatePortStatus in interface org.onosproject.net.device.DeviceStorepublic List<org.onosproject.net.Port> getPorts(org.onosproject.net.DeviceId deviceId)
getPorts in interface org.onosproject.net.device.DeviceStorepublic org.onosproject.net.device.DeviceEvent updatePortStatistics(org.onosproject.net.provider.ProviderId providerId,
org.onosproject.net.DeviceId deviceId,
Collection<org.onosproject.net.device.PortStatistics> portStats)
updatePortStatistics in interface org.onosproject.net.device.DeviceStorepublic org.onosproject.net.Port getPort(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber)
getPort in interface org.onosproject.net.device.DeviceStorepublic List<org.onosproject.net.device.PortStatistics> getPortStatistics(org.onosproject.net.DeviceId deviceId)
getPortStatistics in interface org.onosproject.net.device.DeviceStorepublic boolean isAvailable(org.onosproject.net.DeviceId deviceId)
isAvailable in interface org.onosproject.net.device.DeviceStorepublic org.onosproject.net.device.DeviceEvent removeDevice(org.onosproject.net.DeviceId deviceId)
removeDevice in interface org.onosproject.net.device.DeviceStoreCopyright © 2015. All rights reserved.