Package com.seeq.link.sdk.export
Class ExportOrchestrator
java.lang.Object
com.seeq.link.sdk.export.ExportOrchestrator
Facilitates all aspects of exporting data to the datasource.
-
Constructor Summary
ConstructorsConstructorDescriptionExportOrchestrator
(DatasourceConnectionV2 connection, ExportSamples exportSamplesInterface, DatasourceConnectionServiceV2 connectionService, ExportConnectionConfigV1 config, int putSamplesPageSize, Runnable callback) Instantiates a new ExportOrchestrator. -
Method Summary
-
Constructor Details
-
ExportOrchestrator
public ExportOrchestrator(DatasourceConnectionV2 connection, ExportSamples exportSamplesInterface, DatasourceConnectionServiceV2 connectionService, ExportConnectionConfigV1 config, int putSamplesPageSize, Runnable callback) Instantiates a new ExportOrchestrator. Does not initialize it -- call Initialize() after construction.- Parameters:
connection
- The DatasourceConnectionV2 interface as implemented by the connectionexportSamplesInterface
- The ExportSamples interface as implemented by the connectionconnectionService
- The DatasourceConnectionServiceV2 for the connectionconfig
- The ExportConnectionConfigV1 configuration for the export activityputSamplesPageSize
- The number of samples to supply to the datasource per write callcallback
- Function for use in unit tests to avoid waiting too long before doing checks- See Also:
-
-
Method Details
-
getName
-
initialize
public void initialize()Kicks off the main exporting loop that performs the exporting. -
destroy
public void destroy()Cancels all jobs and shuts down the main exporting loop.
-