Class InternalHistorianProvider.HistorianSyncable
- java.lang.Object
-
- com.inductiveautomation.gateway.tags.history.tsdb.localhistorian.InternalHistorianProvider.HistorianSyncable
-
- All Implemented Interfaces:
Syncable
,SyncSettings
- Enclosing class:
- InternalHistorianProvider
protected static class InternalHistorianProvider.HistorianSyncable extends java.lang.Object implements Syncable, SyncSettings
-
-
Constructor Summary
Constructors Constructor Description HistorianSyncable(GatewayContext context, java.lang.String pipelineName, HistorianSyncSource source, DataSink target, long syncTimeMS, Timeline schedule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getExecutionDelayMS()
java.lang.String
getKey()
A key to uniquely identify this Syncable to theSyncManager
Timeline
getSchedule()
int
getSyncableCount(long syncId)
Returns the number of data points that could be synchronized from the given point.SyncSettings
getSyncSettings()
boolean
isEnabled()
boolean
isScheduleEnabled()
void
shutdown()
void
startup()
SyncResult
sync(long syncId)
Return true if and only if data was successfully sent to the targetprotected HistoricalData
toHistoricalData(java.util.List<PathInfo> pathInfo, ResultDataPoint[] points)
-
-
-
Constructor Detail
-
HistorianSyncable
public HistorianSyncable(GatewayContext context, java.lang.String pipelineName, HistorianSyncSource source, DataSink target, long syncTimeMS, Timeline schedule)
-
-
Method Detail
-
startup
public void startup()
-
shutdown
public void shutdown()
-
getKey
public java.lang.String getKey()
Description copied from interface:Syncable
A key to uniquely identify this Syncable to theSyncManager
-
getSyncableCount
public int getSyncableCount(long syncId)
Description copied from interface:Syncable
Returns the number of data points that could be synchronized from the given point.- Specified by:
getSyncableCount
in interfaceSyncable
-
sync
public SyncResult sync(long syncId)
Description copied from interface:Syncable
Return true if and only if data was successfully sent to the target
-
getSyncSettings
public SyncSettings getSyncSettings()
- Specified by:
getSyncSettings
in interfaceSyncable
-
toHistoricalData
protected HistoricalData toHistoricalData(java.util.List<PathInfo> pathInfo, ResultDataPoint[] points)
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceSyncSettings
-
getExecutionDelayMS
public long getExecutionDelayMS()
- Specified by:
getExecutionDelayMS
in interfaceSyncSettings
-
getSchedule
@Nullable public Timeline getSchedule()
- Specified by:
getSchedule
in interfaceSyncSettings
-
isScheduleEnabled
public boolean isScheduleEnabled()
- Specified by:
isScheduleEnabled
in interfaceSyncSettings
-
-