public abstract class DataSourceRuntime extends PipelineComponentRuntime
DataSourceRuntime
is created
for every acquisition.
The general life cycle of a DataSourceRuntime is:
DataSource.createDataSourceRuntime(PipelineComponentConfiguration, PipelineComponentRuntimeContext)
.false
from checkFullAcquisitionRequired()
IncrementalDataSourceRuntime.runIncrementalAcquisition()
is called to output the records from the data source, otherwise
runFullAcquisition()
is called to output the records from the data source.PipelineComponentRuntime.endAcquisition(AcquisitionEndState)
is called to clean up any resources used by
the runtime.IncrementalDataSourceRuntime
Constructor and Description |
---|
DataSourceRuntime(PipelineComponentRuntimeContext context) |
Modifier and Type | Method and Description |
---|---|
abstract void |
runFullAcquisition()
Runs a full acquisition from the data source.
|
endAcquisition, getContext, stop
public DataSourceRuntime(PipelineComponentRuntimeContext context)
public abstract void runFullAcquisition() throws FatalExecutionException
Records
using the
OutputChannel
obtained from the PipelineComponentRuntimeContext
.
This method is invoked once for a given acquisition.
Any Exceptions thrown from this method, including RuntimeExceptions, cause the acquisition to fail.
FatalExecutionException
- If the DataSourceRuntime detects
an error that should cause the acquisition to abort.PipelineComponentRuntime.stop()
Copyright © 2007, 2015, Oracle and/or its affiliates. All rights reserved.