1.1.1. NIO回顾
1.1.1.1. NIO回顾
NIO API是java 1.4引入的,已经被大多数应用系统所采用。NIO API包含了非阻塞non-blocking应用操作。
java.nio.*包中包含了以下关键的结构:
l Buffers - 数据容器l Chartsets - bytes 和Unicode的翻译容器l Channels - 代表连接与...
分类:
Web程序 时间:
2016-06-02 14:06:44
阅读次数:
386
Java IO模型&NIO
Java IO模型NIO
楔子
概述
网络服务
经典的服务设计
经典的SocketServer循环阻塞
可伸缩目标
分而治之
事件驱动设计
背景知识AWT 事件
Reactor 模式
Reactor基础模式
Java NIO 支持
Channels
Buffers
Selectors
SelectionKeys
Reactor 模式实践
第一步初始化
第二步循环分发
第三...
分类:
编程语言 时间:
2016-06-02 14:00:56
阅读次数:
275
参考文献:
(1)3GPP TS 36.211 V9.1.0 (2010-03) Physical Channels and Modulation
(2)《4G LTE/LTE-Advanced for Mobile Broadband》
(3)http://dhagle.in/LTE
(4)http://www.sharetechnote.com/
(5)3GPP TS 36.212 V9.4.0 (2011-09) Multiplexing and channel coding...
分类:
其他好文 时间:
2016-05-18 19:44:48
阅读次数:
459
package io;
//: io/BufferToText.java
//Converting text to and from ByteBuffers
import java.nio.*;
import java.nio.channels.*;
import java.nio.charset.*;
import java.io.*;
/*
* 转换数据:
* 缓冲器容纳的是普通的字节,为...
分类:
编程语言 时间:
2016-05-12 21:53:37
阅读次数:
280
package io;
import java.nio.*;
import java.nio.channels.*;
import java.io.*;
/*
* 三种类型的流用以产生可写的,可读的,可读可写的通道。
* getChannel()将会产生一个FileChannel通道,可以向他传送用于读写的ByteBuffer,并且可以锁定文件的某些区域用于独占式访问。
* 将字节放于Byt...
分类:
编程语言 时间:
2016-05-12 21:45:46
阅读次数:
216
1、flume创建配置文件flume-spark-tail-conf.properties```
# The configuration file needs to define the sources,
# the channels and the sinks.
# Sources, channels and sinks are defined per agent,
# in this cas...
分类:
Web程序 时间:
2016-05-12 18:42:16
阅读次数:
192
Spark学习七:spark streaming与flume集成标签(空格分隔): Spark一,启动flumeflume-conf.properties文件agent002.sources = sources002
agent002.channels = channels002
agent002.sinks = sinks002
## define sources
agent002.sources...
分类:
Web程序 时间:
2016-05-09 07:02:06
阅读次数:
202
首先说明,各工具的安装就不在这说明了,网上很多,可自行查看。
我们在这里用实例说明各个工具的配置以及最后展示的效果。
假如我们有一批tracklog日志需要用ELK实时展示出来:
一、收集日志,我们使用flume工具
在日志服务器端布置agent发往收集collect,配置如下:
agent(可多个)
agent.sources = s1
agent.channels...
分类:
Web程序 时间:
2016-05-06 16:24:34
阅读次数:
1001
参考文献:
(1)3GPP TS 36.211 V9.1.0 (2010-03) Physical Channels and Modulation
(2)《4G LTE/LTE-Advanced for Mobile Broadband》
(3)http://www.sharetechnote.com/
(4)3GPP TS 36.213 V9.3.0 (2010-09) Physical layer procedures...
分类:
其他好文 时间:
2016-05-06 15:50:25
阅读次数:
746
# Flume test file# Listens via Avro RPC on port 41414 and dumps data received to the logagent.channels = ch-1agent.sources = src-1agent.sinks = sink-1 ...
分类:
Web程序 时间:
2016-05-05 19:24:54
阅读次数:
854