@Beta
public abstract class DeviceProvider
extends java.lang.Object
| Constructor and Description |
|---|
DeviceProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<? extends DeviceConnector> |
getDevices()
Returns a list of DeviceConnector.
|
abstract java.lang.String |
getName()
Returns the name of the provider.
|
abstract int |
getTimeoutInMs()
Returns the timeout to use.
|
abstract void |
init()
Initializes the provider.
|
abstract boolean |
isConfigured()
Returns true if the provider is configured and able to run.
|
abstract void |
terminate()
Terminates the provider and cleans up resources.
|
@NonNull public abstract java.lang.String getName()
public abstract void init()
throws DeviceException
getName()). Each successful call to init() MUST be followed by a call to terminate().DeviceException - if initialization fails.public abstract void terminate()
throws DeviceException
init() MUST
be followed by a call to terminate().DeviceException - if termination fails. Resources will still be cleaned up.@NonNull public abstract java.util.List<? extends DeviceConnector> getDevices()
public abstract int getTimeoutInMs()
public abstract boolean isConfigured()