DataManager class abstract

The DataManager interface is used to upload DataPoint data to any data manager that implements this interface.

Note that each instance of a data manager supports one deployment (MasterDeviceDeployment). A data manager should hence be able to handle separate data management of concurrently running deployments. Hence, caution on resource starvation should be considered, such as not accessing the same file or network socket.

Constructors

DataManager()

Properties

deployment MasterDeviceDeployment
The deployment using this data manager.
no setter
events Stream<DataManagerEvent>
Stream of data manager events.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of this data manager as enumerated in DataEndPointTypes.
no setter

Methods

close() Future<void>
Flush any buffered data and close this data manager. After calling close the data manager can no longer be used.
initialize(DataEndPoint dataEndPoint, MasterDeviceDeployment deployment, Stream<DataPoint> data) Future<void>
Initialize the data manager by specifying the dataEndPoint, study deployment, and the stream of data events to handle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDataPoint(DataPoint dataPoint) Future<void>
On each data event from the data stream, the onDataPoint handler is called. Implementations of this interface should handle how to save or upload the dataPoint.
onDone() Future<void>
When the data stream closes, the onDone handler is called.
onError(Object error) Future<void>
When an error event is send on the stream, the onError handler is called.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited