@Service
public class DeviceManager
extends org.onosproject.net.provider.AbstractListenerProviderRegistry<org.onosproject.net.device.DeviceEvent,org.onosproject.net.device.DeviceListener,org.onosproject.net.device.DeviceProvider,org.onosproject.net.device.DeviceProviderService>
implements org.onosproject.net.device.DeviceService, org.onosproject.net.device.DeviceAdminService, org.onosproject.net.device.DeviceProviderRegistry, org.onosproject.net.config.PortConfigOperatorRegistry
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected org.onosproject.net.config.NetworkConfigService |
networkConfigService |
protected org.onosproject.net.device.DeviceStore |
store |
protected org.onosproject.mastership.MastershipTermService |
termService |
| Constructor and Description |
|---|
DeviceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable) |
protected org.onosproject.net.device.DeviceProviderService |
createProviderService(org.onosproject.net.device.DeviceProvider provider) |
void |
deactivate() |
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) |
void |
registerPortConfigOperator(org.onosproject.net.config.PortConfigOperator portOp,
Class<? extends org.onosproject.net.config.Config<org.onosproject.net.ConnectPoint>>... configs) |
void |
removeDevice(org.onosproject.net.DeviceId deviceId) |
void |
unregisterPortConfigOperator(org.onosproject.net.config.PortConfigOperator portOp) |
addListener, bindEventDispatcher, post, removeListener, unbindEventDispatcherdefaultProvider, getProvider, getProvider, getProvider, getProviders, register, unregister@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceStore store
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipTermService termService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigService networkConfigService
@Activate public void activate()
@Deactivate public void deactivate()
public 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> getAvailableDevices()
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 void removeDevice(org.onosproject.net.DeviceId deviceId)
removeDevice in interface org.onosproject.net.device.DeviceAdminServicepublic void changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable)
changePortState in interface org.onosproject.net.device.DeviceAdminServiceprotected org.onosproject.net.device.DeviceProviderService createProviderService(org.onosproject.net.device.DeviceProvider provider)
createProviderService in class org.onosproject.net.provider.AbstractProviderRegistry<org.onosproject.net.device.DeviceProvider,org.onosproject.net.device.DeviceProviderService>public 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(org.onosproject.net.Device.Type type)
getAvailableDevices in interface org.onosproject.net.device.DeviceService@SafeVarargs public final void registerPortConfigOperator(org.onosproject.net.config.PortConfigOperator portOp, Class<? extends org.onosproject.net.config.Config<org.onosproject.net.ConnectPoint>>... configs)
registerPortConfigOperator in interface org.onosproject.net.config.PortConfigOperatorRegistrypublic void unregisterPortConfigOperator(org.onosproject.net.config.PortConfigOperator portOp)
unregisterPortConfigOperator in interface org.onosproject.net.config.PortConfigOperatorRegistry