The DataSourceRuntime is the runtime representation of a data source instance. It is created by DataSource.createDataSourceRuntime() and exists for the life span of the data source.

CAS Server creates and passes a PipelineComponentRuntimeContext class to DataSource.createDataSourceRuntime(). The PipelineComponentRuntimeContext specifies an output channel, error channel, a state directory, and several other runtime properties.

The ErrorChannel.discard() method discards any invalid records from the record acquisition process. Also, in addition to discarding records, the ErrorChannel class processes exceptions that you catch. This processing includes incrementing the appropriate metric for a record and also logging a record in the cas-service.log file. The ErrorChannel logs events at level WARN and higher.

To create a runtime class for a data source:



Copyright © Legal Notices