-
Notifications
You must be signed in to change notification settings - Fork 3
Sinks
pbonte edited this page Aug 7, 2019
·
5 revisions
We define some prebuilt sinks that allow you to capture that processed data out of the platform.
Simply prints the output to the console.
PrintSink example:
SinkInf printSink = new PrintSink();
PipeLineComponent sinkComp = new PipeLineComponent(printSink,null);
As the Sinks have no more output components, the ouputs can be null
.
Allows to send to results to a remote HTTP server through a HTTP Post request. Parameters:
- url: the URL of the remote server
HTTPPostSink example:
String url=...
SinkInf postSink = new HTTPPostSink(url);
PipeLineComponent sinkComp = new PipeLineComponent(postSink,null);
Opens a websocket client such that it can send data to a websocket server
Opens a websocket server, such that it can send data to one or more websocket clients