Class: TimeSeriesDatasource

TimeSeriesDatasource()

The DataSource is the abstract class used to create different datasources.

Constructor

new TimeSeriesDatasource()

Source:

Methods

(async) connect()

Connect the dataSource then the protocol will be opened as well.
Source:

(async) disconnect()

Disconnect the dataSource then the protocol will be closed as well.
Source:

getEndTimeAsIsoDate() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

getEndTimeAsTimestamp() → {String}

Gets the endTime
Source:
Returns:
- endTime as unix timestamp
Type
String

getId() → {String}

Gets the datasource id.
Source:
Returns:
the datasource id
Type
String

getMaxTimeAsIsoDate() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

getMaxTimeAsTimestamp() → {String}

Gets the endTime
Source:
Returns:
- endTime as unix timestamp
Type
String

getMinTimeAsIsoDate() → {String}

Gets the startTime
Source:
Returns:
- startTime as ISO date
Type
String

getMinTimeAsTimestamp() → {String}

Gets the startTime
Source:
Returns:
- startTime as unix timestamp
Type
String

getMode() → {Mode}

Gets the mode
Source:
Returns:
- Datasource mode
Type
Mode

getName() → {String}

Gets the datasource name.
Source:
Returns:
the datasource name
Type
String

getReplaySpeed() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

getStartTimeAsIsoDate() → {String}

Gets the startTime
Source:
Returns:
- startTime as ISO date
Type
String

getStartTimeAsTimestamp() → {String}

Gets the startTime
Source:
Returns:
- startTime as unix timestamp
Type
String

(async, protected) initDataSource(properties)

Inits the datasource with the constructor properties.
Parameters:
Name Type Description
properties
Source:

(async) setDataSynchronizer(dataSynchronizer) → {Promise}

Parameters:
Name Type Description
dataSynchronizer
Source:
Returns:
Type
Promise

setEndTime()

Sets the end time
Source:

setEndTimestamp()

Sets the end time
Source:

setMaxTime()

Sets the max time
Source:

setMinTime()

Sets the min time
Source:

setReplaySpeed() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

setStartTime()

Sets the start time
Source:

setStartTimestamp()

Sets the start time
Source:

(async) setTimeRange(startTime, endTime, replaySpeed, reconnect, mode, version)

Sets the data source time range
Parameters:
Name Type Default Description
startTime String the startTime (in date ISO)
endTime String the startTime (in date ISO)
replaySpeed Number the replay speed
reconnect boolean false reconnect if was connected
mode Mode default dataSource mode
version Number version of data
Source:

(async) updateProperties(name, properties)

Update properties
Parameters:
Name Type Description
name String the datasource name
properties Object the datasource properties
Properties
Name Type Description
bufferingTime Number defines the time during the data has to be buffered
timeOut Number defines the limit time before data has to be skipped
protocol String defines the protocol of the datasource. @see DataConnector
endpointUrl String the endpoint url
service String the service
responseFormat Number the response format (e.g video/mp4)
reconnectTimeout Number the timeout before reconnecting
Source: