You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by "Dominik Riemer (Jira)" <ji...@apache.org> on 2020/02/20 21:18:00 UTC

[jira] [Created] (STREAMPIPES-81) Extend wrapper interfaces

Dominik Riemer created STREAMPIPES-81:
-----------------------------------------

             Summary: Extend wrapper interfaces
                 Key: STREAMPIPES-81
                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-81
             Project: StreamPipes
          Issue Type: Improvement
          Components: Backend, Pipeline Elements
            Reporter: Dominik Riemer


Currently, pipeline elements implement an interface that provides the three methods onInvocation, onEvent and onDetach.

In future enhancements, we plan to introduce features that require actions at pipeline creation time, e.g., to create a virtual data stream once a pipeline is stored. To avoid installing/deinstalling such a stream at every start/stop of a pipeline, the wrapper interfaces should be extended/refactored as follows:
 * Add an onPipelineStored method to the pipeline element definition
 * Add an onPipelineDeleted method to the pipeline element definition
 * Rename onInvocation to onPipelineStarted and onDetach to onPipelineStopped for clarifying the scope of the provided methods
 * Ensure backwards compatibility by introducing API versioning for pipeline element endpoints
 * Extend the endpoints to handle onPipelineStored/Delete calls, HTTP Post/Delete for Store/Delete and HTTP PUT for Start/Stop



--
This message was sent by Atlassian Jira
(v8.3.4#803005)