public abstract class AbstractDeviceProvider
extends org.onosproject.net.provider.AbstractProvider
implements org.onosproject.net.device.DeviceProvider
DeviceDescriptionDiscovery
driver behaviour to discover device and port details.
Assumes that derived classes will provide code to learn/generate device identifier. Also assumes that derived classes will either obtain the primordial device information sufficient to locate the correct driver, or that they will know which driver should be used, e.g. from network configuration.
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.driver.DriverService |
driverService |
protected org.slf4j.Logger |
log |
protected org.onosproject.net.device.DeviceProviderRegistry |
providerRegistry |
protected org.onosproject.net.device.DeviceProviderService |
providerService |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDeviceProvider(org.onosproject.net.provider.ProviderId id)
Creates a provider with the supplied identifier.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected void |
deactivate() |
protected void |
discoverDevice(org.onosproject.net.driver.DriverHandler handler)
Discovers the device details using the device discovery behaviour of
the supplied driver handler context for interacting with a specific
device.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final org.slf4j.Logger log
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceProviderRegistry providerRegistry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.driver.DriverService driverService
protected org.onosproject.net.device.DeviceProviderService providerService
protected AbstractDeviceProvider(org.onosproject.net.provider.ProviderId id)
id - provider id@Activate protected void activate()
@Deactivate protected void deactivate()
protected void discoverDevice(org.onosproject.net.driver.DriverHandler handler)
handler - driver handler context