目录[-]1、准备工作2、一个Storm集群的基本组件3、Topologies4、Stream5、数据模型(Data Model)6、一个简单的Topology7、流分组策略(Stream grouping)8、使用别的语言来定义Bolt9、可靠的消息处理10、单机版安装指南本文翻译自:https:...
分类:
其他好文 时间:
2014-11-13 12:27:27
阅读次数:
371
1. sudo apt-get install xinetd telnetd2. 安装成功后,系统也会有相应提示,sudo vi /etc/inetd.conf并加入以下一行telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.te...
分类:
Web程序 时间:
2014-11-13 12:09:10
阅读次数:
200
继常量池后继续解析,代码如下:short tempShort = stream.readShort(); System.out.print("access_flags----->"); String value = UtilMap.getClassAccessMap().get(Long.val.....
分类:
编程语言 时间:
2014-11-12 22:48:39
阅读次数:
499
Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got t...
分类:
移动开发 时间:
2014-11-12 19:39:16
阅读次数:
1013
目前在学习Socket,因为和IO关系紧密,于是顺便也学了下IO
发现有这样一句话:
The flush method is valid on any output stream,but has no effect unless the stream is buffered
这句话意思是所有的输出流都有flush方法,但是仅对缓冲流有效
看到这里,笔者想到了自己写的serversocket...
分类:
编程语言 时间:
2014-11-12 11:53:08
阅读次数:
278
最近一两年内FFmpeg项目发展的速度很快,本来是一件好事。但是随之而来的问题就是其API(接口函数)一直在发生变动。这么一来基于旧一点版本的FFmpeg的程序的代码在最新的类库上可能就跑不通了。例如一年前的程序中,获取媒体信息使用的函数是av_find_stream_info()。但是最近的版本中,av_find_stream_info()函数已经无法使用了,取而代之的是avformat_fin...
之前做过的项目中有个需要读取Excel文件内容的需求,因此使用NPOI实现,写下以下代码,这个只是一个代码段,还有很多地方需要优化,希望能对大家有所帮助 public static IList ReadListFromStream(string fileName, Stream str...
分类:
其他好文 时间:
2014-11-11 16:01:16
阅读次数:
194
## 同步与异步 阻塞还是不阻塞,轮询还是事件驱动 Netty是事件驱动的 ## Buffer and Stream > Java has two kinds of classes for input and output (I/O): streams and readers/writers. Streams (InputStream, ...
分类:
编程语言 时间:
2014-11-11 11:01:56
阅读次数:
218
CSourceStream类,是CSource类的OutputPin[source.h/source.cpp]派生自CAMThread和CBaseOutputPinl 成员变量:CSource *m_pFilter; // The parent of this stream//在构造的时候作为输入参数l 新增加的virtual函数:// Override th...
分类:
其他好文 时间:
2014-11-11 09:24:23
阅读次数:
251
函数原型:
FILE *popen(const char * command ,const char *mode)
int pclose(FILE * stream)
注意点:
使用popen和pclose函数可以简洁的控制管道,不需要更多的代码,
但是降低了程序员对管道的控制能力
参数commend是shell命令
参数mode是一个字符指针,r或W,分别表示popen函数的返回值...
分类:
其他好文 时间:
2014-11-10 20:01:19
阅读次数:
300