public interface StateVariableHistoryManager
| Modifier and Type | Method and Description |
|---|---|
void |
clearStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Clear all history for a specified state variable, does not stop recording if active.
|
void |
clearStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Clear all history for a specified state variable, does not stop recording if active.
|
void |
delete(java.lang.String configId)
Deletes the history request from the history service.
|
void |
exportHistoryConfigs(java.io.OutputStream output)
Export the history configurations currently recording.
|
HistoryConfigurationFactory |
getHistoryConfigurationManager()
Gets the configuration manager.
|
MetaTypeProvider |
getMetaTypeProvider(java.lang.String pid)
Get the meta type provider for the state variable history requests
|
<any> |
getStateVariableHistory(java.lang.String deviceType,
java.lang.String[] deviceIds,
java.lang.String controlUnitType,
java.lang.String[] controlUnitIds,
java.lang.String[] stateVarIds,
HistoryConfiguration historyConfiguration)
Get state variable history for a specified set of state variables, control units and devices
|
<any> |
getStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String[] stateVarIds,
HistoryConfiguration historyConfiguration) |
<any> |
getStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId,
HistoryConfiguration historyConfiguration)
Get state variable history for a specified state variable based on the provided history configuration
|
StateVariableHistoryRequest |
getStateVariableHistoryRequest(java.lang.String requestId)
Get state variable history request for the provided request id
|
StateVariableHistoryRequest |
getStateVariableHistoryRequest(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Get state variable history request based on the provided node path, device type, control unit type/id and state variable id
|
StateVariableHistoryRequest |
getStateVariableHistoryRequest(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Get state variable history request based on the provided device type/id, control unit type/id and state variable id
|
<any> |
getStateVariableHistoryRequests()
Get state variable history requests for the current user.
|
boolean |
hasStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Checks if there is some history for the state variable.
|
void |
importHistoryConfigs(java.io.InputStream input)
Import history configurations.
|
boolean |
isRecordingHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Checks if there is a listener to listen for events for the specified state variable.
|
boolean |
isRecordingHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Checks if there is a listener to listen for events for the specified state variable.
|
void |
recordStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.util.Dictionary<java.lang.String,java.lang.Object> stateVarFilter,
java.lang.String stateVarId,
HistoryConfiguration configuration)
Start recording of history for a specified state variable based on the provided history configuration.
|
void |
recordStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId,
HistoryConfiguration configuration)
Start recording of history for a specified state variable based on the provided history configuration.
|
void |
recordStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.util.Dictionary<java.lang.String,java.lang.Object> stateVarFilter,
java.lang.String stateVarId,
HistoryConfiguration configuration)
Start recording of history for a specified state variable based on the provided history configuration.
|
void |
recordStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId,
HistoryConfiguration configuration)
Start recording of history for a specified state variable based on the provided history configuration.
|
void |
stopStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Stop recording of history for a specified state variable, does not clear the current history.
|
void |
stopStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
Stop recording of history for a specified state variable, does not clear the current history.
|
void |
update(StateVariableHistoryRequest historyRequest)
Notifies the history service that a history request should be updated.
|
void recordStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId,
HistoryConfiguration configuration)
throws ManagementException
deviceType - the device type of the devicedeviceId - the device id of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idconfiguration - the history configuration or null, meaning the only restriction is on the max number of values to recordManagementExceptionvoid recordStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId,
HistoryConfiguration configuration)
throws ManagementException
nodePath - the node path under which are the devices to listen for events from or null, meaning the root groupwholeSubtree - if recording should be for all devices under the node and in all its subgroups or only for the direct descendantsdeviceType - the device type of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idconfiguration - the history configuration or null, meaning the only restriction is on the max number of values to recordManagementExceptionvoid recordStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.util.Dictionary<java.lang.String,java.lang.Object> stateVarFilter,
java.lang.String stateVarId,
HistoryConfiguration configuration)
throws ManagementException
deviceType - the device type of the devicedeviceId - the device id of the devicecontrolUnitType - the control unit typestateVarFilter - state variable filter based on concrete values for state variablesstateVarId - the state variable idconfiguration - the history configuration or null, meaning the only restriction is on the max number of values to recordManagementExceptionvoid recordStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.util.Dictionary<java.lang.String,java.lang.Object> stateVarFilter,
java.lang.String stateVarId,
HistoryConfiguration configuration)
throws ManagementException
nodePath - the node path under which are the devices to listen for events from or null, meaning the root groupwholeSubtree - if recording should be for all devices under the node and in all its subgroups or only for the direct descendantsdeviceType - the device type of the devicecontrolUnitType - the control unit typestateVarFilter - state variable filter based on concrete values for state variablesstateVarId - the state variable idconfiguration - the history configuration or null, meaning the only restriction is on the max number of values to recordManagementExceptionvoid stopStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
throws ManagementException
deviceType - the device type of the devicedeviceId - the device id of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idManagementExceptionvoid stopStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
throws ManagementException
nodePath - the node path under which are the devices to listen for events from or null, meaning the root groupwholeSubtree - if recording should be for all devices under the node and in all its subgroups or only for the direct descendantsdeviceType - the device type of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idManagementExceptionvoid clearStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
throws ManagementException
deviceType - the device type of the devicedeviceId - the device id of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idManagementExceptionvoid clearStateVariableHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
throws ManagementException
nodePath - the node path under which are the devices to listen for events from or null, meaning the root groupwholeSubtree - if recording should be for all devices under the node and in all its subgroups or only for the direct descendantsdeviceType - the device type of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idManagementExceptionboolean hasStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
throws ManagementException
deviceType - the device type of the devicedeviceId - the device id of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idManagementExceptionboolean isRecordingHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
throws ManagementException
deviceType - the device type of the devicedeviceId - the device id of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idManagementExceptionboolean isRecordingHistory(java.lang.String nodePath,
boolean wholeSubtree,
java.lang.String deviceType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId)
throws ManagementException
nodePath - the node path under which are the devices to listen for events from or null, meaning the root groupwholeSubtree - if recording should be for all devices under the node and in all its subgroups or only for the direct descendantsdeviceType - the device type of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit id or null, meaning recording will be performed for all control units of the specified typestateVarId - the state variable idManagementException<any> getStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String stateVarId,
HistoryConfiguration historyConfiguration)
throws ManagementException
deviceType - the device type of the devicedeviceId - the device id of the devicecontrolUnitType - the control unit typecontrolUnitId - the control unit idstateVarId - the state variable idhistoryConfiguration - the history configuration or null, meaning the only restriction is the max number of valuesManagementException<any> getStateVariableHistory(java.lang.String deviceType,
java.lang.String[] deviceIds,
java.lang.String controlUnitType,
java.lang.String[] controlUnitIds,
java.lang.String[] stateVarIds,
HistoryConfiguration historyConfiguration)
throws ManagementException
deviceType - the device type of the devicedeviceIds - non null list of device identifierscontrolUnitType - the control unit typecontrolUnitIds - non null list of control unit identifiersstateVarIds - non null list of state variable identifiershistoryConfiguration - the history configuration or null, meaning the only restriction is the max number of valuesManagementException<any> getStateVariableHistory(java.lang.String deviceType,
java.lang.String deviceId,
java.lang.String controlUnitType,
java.lang.String[] stateVarIds,
HistoryConfiguration historyConfiguration)
throws ManagementException
ManagementExceptionStateVariableHistoryRequest getStateVariableHistoryRequest(java.lang.String requestId) throws ManagementException
requestId - the request idManagementExceptionStateVariableHistoryRequest getStateVariableHistoryRequest(java.lang.String deviceType, java.lang.String deviceId, java.lang.String controlUnitType, java.lang.String controlUnitId, java.lang.String stateVarId) throws ManagementException
deviceType - the device typedeviceId - the device idcontrolUnitType - the control unit typecontrolUnitId - the control unit idstateVarId - the state variable idManagementExceptionStateVariableHistoryRequest getStateVariableHistoryRequest(java.lang.String nodePath, boolean wholeSubtree, java.lang.String deviceType, java.lang.String controlUnitType, java.lang.String controlUnitId, java.lang.String stateVarId) throws ManagementException
nodePath - the node pathwholeSubtree - if whole subtree was selecteddeviceType - the device typecontrolUnitType - the control unit typecontrolUnitId - the control unit idstateVarId - the state variable idManagementException<any> getStateVariableHistoryRequests()
throws ManagementException
StateVariableHistoryRequest objects can be changed at will but for the change to propagate
to the backend, the update(StateVariableHistoryRequest) must be called.ManagementExceptionvoid update(StateVariableHistoryRequest historyRequest) throws ManagementException
getStateVariableHistoryRequests()historyRequest - the updated history requestManagementExceptionvoid delete(java.lang.String configId)
throws ManagementException
getStateVariableHistoryRequests()configId - the id of the recording request to be deletedManagementExceptionMetaTypeProvider getMetaTypeProvider(java.lang.String pid) throws ManagementException
pid - one of 'mprm.gdm.svhistory.devicetype' and 'mprm.gdm.svhistory.singledevice' for the two meta typesManagementExceptionvoid importHistoryConfigs(java.io.InputStream input)
throws ManagementException
input - the history configurationsManagementExceptionvoid exportHistoryConfigs(java.io.OutputStream output)
throws ManagementException
output - ManagementExceptionHistoryConfigurationFactory getHistoryConfigurationManager()
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.