DataManager class abstract

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

Note that each instance of a data manager supports one deployment (PrimaryDeviceDeployment). 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.

Implementers

Constructors

DataManager()

Properties

deployment → PrimaryDeviceDeployment
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
studyDeploymentId String
The ID of the study deployment that this manager is handling.
no setter
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, SmartphoneDeployment deployment, Stream<Measurement> measurements) Future<void>
Initialize the data manager by specifying the study deployment, the dataEndPoint, and the stream of measurements events to handle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
onMeasurement(Measurement measurement) Future<void>
On each measurement collected, the onMeasurement handler is called.
toString() String
A string representation of this object.
inherited

Operators

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