Interface HistorianSyncSource
-
- All Known Implementing Classes:
SQLiteHistorian
public interface HistorianSyncSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.sql.DataSource
getDatasource()
Returns the datasource used for storing syncable data.int
getSyncableCount(long syncId)
Returns the number of data points that could be synchronized from the given point.long
getSyncIdTimestamp(long syncId)
Returns the timestamp of the start of the sync group.boolean
hasSyncableData(long syncId)
Returns whether there is data available to sync based on the provided id.java.util.List<HistoricalData>
sync(long syncId)
This returns a set of data- it's up to the implementation to decide what makes sense.
-
-
-
Method Detail
-
hasSyncableData
boolean hasSyncableData(long syncId)
Returns whether there is data available to sync based on the provided id.
-
getSyncableCount
int getSyncableCount(long syncId)
Returns the number of data points that could be synchronized from the given point.
-
getSyncIdTimestamp
long getSyncIdTimestamp(long syncId)
Returns the timestamp of the start of the sync group.
-
sync
java.util.List<HistoricalData> sync(long syncId)
This returns a set of data- it's up to the implementation to decide what makes sense. If the caller wants more data, it can just call again.- Parameters:
syncId
- if 0, returns next set of available data based on last query. Otherwise, starts at the given time period.
-
getDatasource
javax.sql.DataSource getDatasource()
Returns the datasource used for storing syncable data.
-
-