-
Notifications
You must be signed in to change notification settings - Fork 3
TargetAdapterBase
Mendz edited this page Nov 4, 2017
·
5 revisions
The base target adapter.
None.
None.
Name | Description |
---|---|
DocumentSpecification TargetSpecification | Get or sets the target document specification. |
IValidator TargetValidator | Gets or sets the target validator. |
None.
Name | Description |
---|---|
void LoadOutput(IEnumerable<string>) | Loads the output to the target. |
Name | Description |
---|---|
void Load(IEnumerable<string>) | Raises target adapter events, calls LoadOutput() and validates the target. |
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. |
The Load() implementation performs the following:
- If set, raises OnTargetAdapterStart.
- Start producer-consumer pattern where LoadOutput() is the consumer.
- For each output:
a. If set, raises OnLoading.
b. Add output to LoadOutput().
c. If set, raises OnLoaded. - Complete adding to LoadOutput().
- Wait for LoadOutput() to finish.
- If set, calls TargetValidator.Validate(TargetSpecification).
- If set, raises OnTargetAdapterEnd.