simple_flow
simple realtime flow computation
简介
simple_flow 是一个简单的实时流计算框架,由两部分组成,一个是agent,一个是flow_server, agent负责将数据实时传输给flow_server,flow_server负责对实时流的处理
特点
- linux only
- 继承simple系列的传统,简洁实用
- 安全,可靠 -- 采用拉模式,对数据源系统依赖,影响小
依赖
- simple_log 日志组件
构建 && 测试
make && make test # 此步骤会生成一个agent和一个测试用的flow_server
./bin/flow_server_test # start flow_server to receive flow
./bin/fileagent localhost 3491 /tmp/test.log # usage: ./bin/fileagent flow_server_ip flow_server_port file_path
代码示例
#include <fstream>
#include "simple_log.h"
#include "flow_handler.h"
#include "flow_server.h"
class LogFlowHandler : public FlowHandler {
public:
int do_handle(char *flow_bytes, int size) {
std::string receive_flow = std::string(flow_bytes, size);
LOG_DEBUG("start handle the size:%d, flows %s", size, receive_flow.c_str());
return 0;
}
};
int main() {
FlowServer flow_server;
flow_server.start(3491, new LogFlowHandler());
return 1;
}
项目地址: https://github.com/hongliuliao/simple_flow
相关推荐
opencv的光流法源码,很多人找不到,我找到了,包含三个文件,optflowgf.cpp,simpleflow.cpp,simpleflow.hpp
simple_cnn, 简单卷积神经网络库 simple_cnnsimple_cnn是一种易于阅读和使用卷积神经网络库的方法。simple_cnn在场景后面大多是c 类的,不使用虚拟类,可以以在需要时避免使用 when 。手写数字识别( Youtube视频)的...
Simpleflow是一个免费套件,且没有收费的计划 如果您想将Simpleflow应用于生产环境,请邮件告知Simpleflow@163.com,开发团队只想了解Simpleflow的应用情况 并请及时反馈测试与使用过程中发生的问题。 Simpleflow...
Wi-Fi_Simple_Configuration_Technical_Specification_v2.1_0 WIFI联盟出品的官方spec文档最新版
Opencv: Optical flow calculation using Block Matching method
资源分类:Python库 所属语言:Python 资源全名:simple_icd_10-1.6.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
VC代码 simple_splitter (实用代码源)VC代码 simple_splitter (实用代码源)VC代码 simple_splitter (实用代码源)VC代码 simple_splitter (实用代码源)VC代码 simple_splitter (实用代码源)VC代码 simple_splitter ...
classifier/emotion_models/simple_CNN.530-0.65.hdf5
这个是性别识别库,simple_CNN.81-0.96.hdf5,我用python写性别识别功能的时候用到这个,在这里分享给大家。
simple_os_book
基于MATLAB的simple_lookup详解,主要解决的是simple_lookup的问题
在C语言中 使用 面向对象的思想 编程 可以是 做一个 C库 供其他的 C程序调用 该方法 主要是 状态机 QP HSM 中使用
采用离散网格,基于SIMPLE算法的基本思想求解方腔不可压缩驱动流
GPIO Controller的简单字符设备驱动代码
vb写的simple_C算法,6.0写的,.net没试过,不知道可不可以
SIMPLE算法编程语言,使用Matlab对SIMPLE算法进行了阐述。
simple_html_dom下载和使用
Simple_DNS_Plus_5.2(build117) 这个版本WINDOWS10使用正常 可自定义域名使用比如(*.xxx) 本地开发特别方便,比改hosts文件方便太多
simple_html_dom使用了类似jQuery的元素选择器,通过元素的id,class,tag等等来查找定位;同时还提供添加、删除、修改文档树的功能。当然,这样一款强大的html Dom解析器也不是尽善尽美;在使用的过程中需要十分...
Simple_Program_TWINCAT3入门_simple_源码