public interface DriverService extends DriverResolver
| Modifier and Type | Method and Description |
|---|---|
DriverHandler |
createHandler(DeviceId deviceId,
String... credentials)
Creates a new driver handler for interacting with the specified device.
|
Driver |
getDriver(DeviceId deviceId)
Returns the driver for the specified device.
|
Driver |
getDriver(String mfr,
String hw,
String sw)
Returns the driver that matches the specified primordial device
discovery information.
|
Set<Driver> |
getDrivers()
Returns the overall set of drivers being provided.
|
Set<Driver> |
getDrivers(Class<? extends Behaviour> withBehaviour)
Returns the set of drivers which support the specified behaviour.
|
getDriverSet<Driver> getDrivers()
Set<Driver> getDrivers(Class<? extends Behaviour> withBehaviour)
withBehaviour - behaviour class to query byDriver getDriver(String mfr, String hw, String sw)
mfr - device manufacturerhw - device hardware name/versionsw - device software versionDriver getDriver(DeviceId deviceId)
driver annotation, its value is used to look-up the driver.
Otherwise, the device manufacturer, hardware and software version
attributes are used to look-up the driver. First using their literal
values and if no driver is found, using ERE matching against the
driver manufacturer, hardware and software version fields.deviceId - device identifierorg.onlab.util.ItemNotFoundException - if device or driver for it
are not foundDriverHandler createHandler(DeviceId deviceId, String... credentials)
getDriver(DeviceId) method.deviceId - device identifiercredentials - optional login credentials in string formorg.onlab.util.ItemNotFoundException - if device or driver for it
are not found