Skip to content

TargetAdapterBase

Mendz edited this page Nov 4, 2017 · 5 revisions

TargetAdapterBase

The base target adapter.

Constructors

None.

Properties

None.

Inherited Properties

Name Description
DocumentSpecification TargetSpecification Get or sets the target document specification.
IValidator TargetValidator Gets or sets the target validator.

Methods

None.

Abstract Methods

Name Description
void LoadOutput(IEnumerable<string>) Loads the output to the target.

Inherited Methods

Name Description
void Load(IEnumerable<string>) Raises target adapter events, calls LoadOutput() and validates the target.

Inherited Events

Name Description
ETLTargetAdapterEventHandler OnTargetAdapterStart Raised when the target adapter starts.
ETLTargetAdapterEventHandler OnLoading Raised before the output is loaded to the target.
ETLTargetAdapterEventHandler OnLoaded Raised after the output is loaded to the target.
ETLTargetAdapterEventHandler OnTargetAdapterEnd Raised when the target adapter ends.

Remarks

The Load() implementation performs the following:

  1. If set, raises OnTargetAdapterStart.
  2. Start producer-consumer pattern where LoadOutput() is the consumer.
  3. For each output:
    a. If set, raises OnLoading.
    b. Add output to LoadOutput().
    c. If set, raises OnLoaded.
  4. Complete adding to LoadOutput().
  5. Wait for LoadOutput() to finish.
  6. If set, calls TargetValidator.Validate(TargetSpecification).
  7. If set, raises OnTargetAdapterEnd.