如何将数据从Java类推送到Wso2 DAS [英] how to push data from java class to Wso2 DAS

查看:120
本文介绍了如何将数据从Java类推送到Wso2 DAS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何文档或逐步的流程来指导我们如何使用WS02 DAS从Java类对象中提取数据并使用WS02仪表板使用此数据显示报告.

Is there any document or step by step process which guides us on how we can use WS02 DAS to pull data from java class objects and display reports using this data using WS02 Dashboards.

任何帮助将不胜感激.

推荐答案

首先,您可以通过指定属性并提及需要保留的属性来创建事件流.当事件到达流时,这些事件将存储在事件表[1]中.

First You can create an Event Stream by specifying attributes and mention what are the attributes you need to persist. When events arrives to the streams, those will be stored in Events tables [1].

然后,您可以为该事件流[2]创建一个事件接收器.创建事件流时,可以使用Thrift,Soap,Http,Mqtt,JMS,Kafka和Web套接字等协议.您可以编写一个简单的Java应用程序,以将数据发布到根据选定的消息格式协议创建的DAS接收器.对于实例,如果创建SOAP接收器,则可以使用肥皂消息格式的数据,如果创建HTTP接收器,则可以使用JSON格式.

Then you can create an Event Receiver for that Event Stream [2]. When creating an event stream you can use a protocol such as Thrift, Soap, Http, Mqtt, JMS, Kafka and Web sockets. You can write a simple Java Application to publish data to DAS Receiver you created on message format protocol which you have selected. For an instance if you create SOAP receiver you can use data on soap message format and also if you create a HTTP receiver you can use JSON format.

您可以创建仪表板和小工具以可视化由持久流[3]创建的事件表.请注意,此事件表包含WSO2 DAS收到的所有事件,您可以使用spark SQL [4]处理这些数据,并创建多个可在Analytics Dashboard中使用的流.

You can create a dashboard and gadgets to visualize Event table which was created by your persistent stream [3]. Please note that this event table consist all the events WSO2 DAS received, you can process these data by using spark SQL [4] and create several streams which could be used in Analytics Dashboard.

[1] https://docs.wso2 .com/display/DAS300/Understanding + Event + Streams + and + Event + Tables

[2] https://docs.wso2.com/display/DAS300/Configuring + Event + Receivers

[3] https://docs.wso2.com/display/DAS300/Analytics +仪表板

[4] https://docs.wso2.com/display/DAS300/Batch + Analytics +使用+ Spark + SQL

这篇关于如何将数据从Java类推送到Wso2 DAS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆