摘要
水文监测系统是一个提供水文部门监测各类水文信息的平台。业务功能比较丰富,主要包括遥测站的定位、状态的查询、实时信息以及往年水文信息的查询等。水文监测系统需要异步处理各个遥测站发来的消息,包括信息的收集、分析与存储以及网页端的实时信息的查询。传统的水文监测服务端多采用BIO的方式接受处理数据,该文在比较传统BIO技术的基础上,采用NIO的方式处理水文类数据。通过对NIO框架Netty源码的封装与扩展,提供能接受处理客户端异步请求的通用的可重用的水文监测服务端的设计思路与具体实现。
The hydrological monitoring system is a platform that provide all kinds of hydrological informationfor hydrological departments.Business functions are abundant,including telemetry station location,status query,real-time information and previous hydrological information query.Hydrological monitoring system need to process message sended by each remote station asynchronously,including information collection,analysis and storage,real-time information query by the page.Traditional hydrological monitoring server uses BIO way to accept the processing data.This paper uses NIO way to deal with hydrological data based on the comparison of traditional BIO and describes the design ideas and implementation of hydrological monitoring server achieved by the encapsulation and extension of the source code of Netty,which can process the request of client asynchronously.
出处
《电脑知识与技术(过刊)》
2017年第2X期183-186,共4页
Computer Knowledge and Technology
关键词
水文监测
NIO
Netty框架
异步
Hydrological monitoring
NIO
Netty framework
Asynchronous