简体   繁体   English

您如何与正在运行的SPL应用程序进行交互?

[英]How can you interact with a running SPL application?

How can I interact with my running SPL application? 如何与正在运行的SPL应用程序进行交互? Eg, if I want it to start or stop collecting certain stats, or if I want it to stop Export-ing certain properties? 例如,如果我要它开始或停止收集某些统计信息,还是要它停止导出某些属性?

In SPL, think about a stream whenever you need to send a message/data. 在SPL中,每当您需要发送消息/数据时,请考虑流。

Create an input stream using a *Source operator (eg, FileSource or UDPSource ). 使用*Source运算符(例如FileSourceUDPSource )创建输入流。 When you want to interact with your running SPL application, send a message via that input source. 当您想与正在运行的SPL应用程序进行交互时,请通过该输入源发送一条消息。 The input stream operator will then send the message to a separate "parser" operator that can then act on the message. 输入流运算符然后将消息发送到一个单独的“解析器”运算符,该运算符然后可以对该消息进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM