Interface HistorianSyncSource
- 
- All Known Implementing Classes:
- SQLiteHistorian
 
 public interface HistorianSyncSource
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.sql.DataSourcegetDatasource()Returns the datasource used for storing syncable data.intgetSyncableCount(long syncId)Returns the number of data points that could be synchronized from the given point.longgetSyncIdTimestamp(long syncId)Returns the timestamp of the start of the sync group.booleanhasSyncableData(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- 
hasSyncableDataboolean hasSyncableData(long syncId) Returns whether there is data available to sync based on the provided id.
 - 
getSyncableCountint getSyncableCount(long syncId) Returns the number of data points that could be synchronized from the given point.
 - 
getSyncIdTimestamplong getSyncIdTimestamp(long syncId) Returns the timestamp of the start of the sync group.
 - 
syncjava.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.
 
 - 
getDatasourcejavax.sql.DataSource getDatasource() Returns the datasource used for storing syncable data.
 
- 
 
-