public interface DeviceExecStatus
DeviceExecStatus
are never directly instantiated, but rather its extensions - DeviceTaskStatus
and DeviceRuleStatus
are returned by the system to represent device execution statuses
summarized respectively for Tasks and Rules.
DeviceExecStatus
-s related to Tasks could be obtained via methods
Task.listInvolvedDevices(DeviceExecStatus.State)
, Task.listInvolvedDevices(DeviceExecStatus.State, int)
, Task.getInvolvedDeviceState(String)
,
MassManagementEngine.listTasksForDevice(String, DeviceExecStatus.State, boolean)
and MassManagementEngine.listTasksForDevice(String, DeviceExecStatus.State, boolean, int)
.
Respectively, DeviceExecStatus
-s related to Rules could be obtained via
Rule.listInvolvedDevices(DeviceExecStatus.State)
, Rule.getInvolvedDeviceState(String)
and MassManagementEngine.listRulesForDevice(String, DeviceExecStatus.State)
.Modifier and Type | Interface and Description |
---|---|
static class |
DeviceExecStatus.State
Defines possible statuses for device executions.
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
cancel()
Cancels the device execution in the scope of the Task or Rule.
|
String |
getDeviceId()
Returns the id of the device this execution status is about.
|
Action |
getExecAction()
Returns the action of the Task or Rule.
|
String |
getExecName()
Returns the display name of the Task or Rule.
|
DeviceExecStatus.State |
getExecState()
Returns the execution status of this record.
|
String |
getStateDescription()
May return a additional description of the
DeviceExecStatus state if needed. |
DeviceExecStatus.State getExecState()
String getExecName()
Action getExecAction()
String getStateDescription()
DeviceExecStatus
state if needed.DeviceExecStatus
state.String getDeviceId()
CompletionStage<Void> cancel()
Copyright © 2022 Bosch.IO GmbH. All rights reserved.