Role of PipelineContext and PipelineContract #369
Unanswered
Prateeksha-shanbhogue
asked this question in
Q&A
Replies: 1 comment
-
They provide a narrow interface (contract) between the pipeline and the agent and various shared resources in the context to allow for counters, stats, dup detection, and the like. It is much easier to provide a controlled mocked environment than the entire MTConnect Agent to isolate testing of the transforms and pipelines to just the individual functionality. It is usually good practice to limit dependencies and separate concerns. The pipeline context provides a shared state between threads to manage some cross-data source accounting and management. Look at the period filter to get an idea of how the context works. Best,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.!
I have been trying to understand the code flow..
Can anybody tell me how exactly does the pipelineContext and pipelineContract help in transforming the data from source to the sink....?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions