Location:
Search - java cache
Search list
Description: java高速缓存和连接池对访问数据库性能的影响-java cache and connection pool to access the database performance of
Platform: |
Size: 180335 |
Author: 唐财爷 |
Hits:
Description: ·VI·
目 录
前言
第1章 高性能聊天系统...................................................................................................1
1.1 系统需求...........................................................................................................1
1.2 架构设计...........................................................................................................2
1.2.1 Java事件模型.....................................................................................................2
1.2.2 架构设计图.......................................................................................................5
1.2.3 协议设计.........................................................................................................5
1.2.4 多线程...........................................................................................................6
1.2.5 线程池...........................................................................................................9
1.2.6 非堵塞I/O........................................................................................................11
1.3 Socket核心设计和实现...............................................................................................13
1.3.1 TCP和Reactor模式.................................................................................................14
1.3.2 UDP实现..........................................................................................................19
1.3.3 客户端实现.......................................................................................................22
1.4 Socket接口设计和实现..............................................................................................28
1.4.1 队列和对象类型..................................................................................................28
1.4.2 访问者模式定义..................................................................................................32
1.4.3 访问者模式实现..................................................................................................36
1.4.4 协议封装........................................................................................................39
1.4.5 重整Refactoring.................................................................................................41
1.5 应用接口设计和实现................................................................................................45
1.5.1 Connection API..................................................................................................46
1.5.2 ConnectionFactory API...........................................................................................49
1.5.3 TcpConnection API...............................................................................................53
1.5.4 UdpConnection API...............................................................................................54
1.6 应用层设计和实现..................................................................................................56
1.6.1 客户端聊天测试..................................................................................................56
1.6.2 服务器聊天测试..................................................................................................58
1.7 性能测试..........................................................................................................59
1.8 小结..............................................................................................................61
第2章 简单的用户注册系统..............................................................................................62
2.1 需求分析............................................................................................................62
2.2 系统设计............................................................................................................62
2.2.1 JSP/Servlet与J2EE.................................................................................................63
2.2.2 结构设计图........................................................................................................64
2.2.3 JSP/JavaBeans技术要点.............................................................................................65
2.2.4 JDBC和连接池......................................................................................................68
2.2.5 数据库设计........................................................................................................70
2.3 类的详细设计和实现..................................................................................................71
2.3.1 Facade模式........................................................................................................71
2.3.2 JDBC通用操作类....................................................................................................73
2.3.3 E-mail发送通用类..................................................................................................78
2.3.4 用户资料管理......................................................................................................79
2.3.5 密码数据操作类....................................................................................................83
2.3.6 登陆验证功能......................................................................................................85
2.4 界面编程实现........................................................................................................87
2.4.1 登陆验证页面......................................................................................................87
2.4.2 注册页面..........................................................................................................88
2.5 调试、发布和运行....................................................................................................90
2.5.1 单元测试..........................................................................................................91
2.5.2 快速配置开发环境..................................................................................................92
2.5.3 Tomcat配置和调试..................................................................................................93
2.5.4 Tomcat连接池使用..................................................................................................95
2.6 Hibernate使用.......................................................................................................99
2.7 小结................................................................................................................103
第3章 Jive论坛系统.....................................................................................................107
3.1 Jive功能需求.......................................................................................................107
3.2 Jive与设计模式.....................................................................................................108
3.2.1 设计模式.........................................................................................................109
3.2.2 ForumFactory与工厂模式...........................................................................................109
3.2.3 统一入口与单态模式...............................................................................................113
3.2.4 访问控制与代理模式...............................................................................................114
3.2.5 批量分页查询与迭代模式...........................................................................................115
3.2.6 过滤器与装饰模式.................................................................................................120
3.2.7 主题监测与观察者模式.............................................................................................124
3.3 Jive安全管理机制...................................................................................................128
3.3.1 安全验证机制.....................................................................................................129
3.3.2 用户资料管理.....................................................................................................132
3.4 Jive的缓存机制.....................................................................................................133
3.4.1 缓存原理和实现...................................................................................................133
3.4.2 缓存使用.........................................................................................................136
3.4.3 小结.............................................................................................................139
3.5 Jive的其他组件技术.................................................................................................140
3.5.1 Jive的树形结构...................................................................................................140
3.5.2 XML和JDOM........................................................................................................143
3.5.3 全文检索和Lucene.................................................................................................147
3.5.4 Jive的中文问题...................................................................................................152
3.6 Jive图形处理.......................................................................................................154
3.6.1 图片上传处理.....................................................................................................154
3.6.2 服务器端图形处理.................................................................................................157
3.7 Jive安装调试运行...................................................................................................159
3.8 小结...............................................................................................................160
第4章 网站内容管理系统.................................................................................................161
4.1 需求分析...........................................................................................................161
4.2 架构设计...........................................................................................................162
4.2.1 系统架构图.......................................................................................................163
4.2.2 MVC模式和Struts..................................................................................................164
4.2.3 DBO模式和Castor..................................................................................................167
4.2.4 Cache设计........................................................................................................172
4.3 详细设计和实现.....................................................................................................173
4.3.1 基本对象设计.....................................................................................................173
4.3.2 数据模型的实现...................................................................................................174
4.3.3 抽象工厂(Abstract Factory)模式...................................................................................175
4.3.4 生成器(Builder)模式..............................................................................................180
4.4 表现层的实现.......................................................................................................187
4.4.1 Strut相关设置....................................................................................................187
4.4.2 创建PageForm.....................................................................................................189
4.4.3 创建PageAction...................................................................................................192
4.4.4 创建page.jsp页面.................................................................................................194
4.4.5 自定义标签库.....................................................................................................196
4.4.6 创建SavePageAction...............................................................................................199
4.4.7 Tile模板.........................................................................................................201
4.4.8 创建cmsMenu.jsp..................................................................................................203
4.4.9 创建index.jsp....................................................................................................203
4.4.10 小技巧..........................................................................................................204
4.5 项目重整Refactoring................................................................................................205
4.6 调试、发布和运行...................................................................................................206
4.6.1 配置和运行.......................................................................................................206
4.6.2 Log调试信息的配置................................................................................................206
4.7 小结...............................................................................................................207
第5章 订阅信息系统.....................................................................................................209
5.1 需求分析...........................................................................................................209
5.2 架构设计...........................................................................................................209
5.2.1 Cache和Pool......................................................................................................210
5.2.2 EJB框架体系......................................................................................................211
5.2.3 架构图...........................................................................................................213
5.2.4 接口框架设计.....................................................................................................213
5.3 EJB详细设计和实现..................................................................................................214
5.3.1 业务对象建模.....................................................................................................215
5.3.2 开发环境配置.....................................................................................................216
5.3.3 CMP图形开发......................................................................................................217
5.3.4 实体Bean.........................................................................................................221
5.3.5 Facade Session Bean..............................................................................................229
5.3.6 Transfer Object模式..............................................................................................232
5.4 Web与EJB接口框架...................................................................................................233
5.4.1 框架的设计.......................................................................................................233
5.4.2 框架的实现.......................................................................................................235
5.4.3 框架的使用.......................................................................................................243
5.5 表现层的设计和实现.................................................................................................247
5.5.1 创建ActionForm...................................................................................................247
5.5.2 创建Action 类....................................................................................................248
5.5.3 创建JSP页面......................................................................................................248
5.6 调试配置和运行.....................................................................................................249
5.6.1 JBoss和MySQL的配置...............................................................................................250
5.6.2 JNDI配置.........................................................................................................251
5.6.3 部署和发布.......................................................................................................253
5.6.4 调试和测试.......................................................................................................254
5.7 小结...............................................................................................................254
第6章 用户安全管理系统.................................................................................................256
6.1 需求分析...........................................................................................................256
6.2 架构设计...........................................................................................................256
6.2.1 角色.............................................................................................................257
6.2.2 J2EE的JAAS.......................................................................................................257
6.2.3 单点登录.........................................................................................................259
6.2.4 邮件发送组件.....................................................................................................261
6.3 详细设计和实现.....................................................................................................261
6.3.1 业务对象建模.....................................................................................................261
6.3.2 数据库设计.......................................................................................................263
6.3.3 实体bean实现.....................................................................................................263
6.3.4 Session Bean实现.................................................................................................266
6.3.5 EJB容器安全配置..................................................................................................273
6.4 JMS 邮件发送组件...................................................................................................275
6.4.1 消息发送器.......................................................................................................276
6.4.2 MDB..............................................................................................................279
6.5 Web层的实现........................................................................................................282
6.5.1 用户资料管理.....................................................................................................282
6.5.2 Web容器安全配置..................................................................................................287
6.6 调试配置和运行.....................................................................................................289
6.6.1 JAAS配置.........................................................................................................290
6.6.2 邮件服务的配置...................................................................................................291
6.6.3 部署和发布.......................................................................................................292
6.7 小结...............................................................................................................292
第7章 EJB方法调用框架..................................................................................................294
7.1 框架概况...........................................................................................................294
7.1.1 远程调用技术背景.................................................................................................294
7.1.2 框架结构.........................................................................................................295
7.2 框架设计..........................................................................................................296
7.2.1 代理(Proxy)模式...............................................................................................296
7.2.2 动态代理........................................................................................................298
7.2.3 反射(Reflection)和方法调用....................................................................................300
7.2.4 HTTP协议和对象序列化............................................................................................302
7.2.5 框架设计图......................................................................................................304
7.2.6 HTTPSession和缓存机制...........................................................................................305
7.2.7 基于HTTP的安全机制..............................................................................................306
7.3 类的详细设计和实现................................................................................................309
7.3.1 基本业务对象....................................................................................................310
7.3.2 动态代理工厂....................................................................................................312
7.3.3 肥客户端/服务器架构下实现.......................................................................................315
7.3.4 Web层代理Servlet Proxy..........................................................................................322
7.3.5 浏览器/服务器架构下实现.........................................................................................324
7.3.6 核心代理Business Proxy实现......................................................................................327
7.4 框架的使用和调试..................................................................................................333
7.4.1 配置............................................................................................................333
7.4.2 浏览器/服务器架构下的应用.......................................................................................335
7.4.3 肥客户端/服务器架构下的应用.....................................................................................336
7.5 小结..............................................................................................................337
第8章 网上商店系统...................................................................................................338
8.1 系统需求和设计...................................................................................................338
8.1.1 基本业务对象...................................................................................................339
8.1.2 数据表设计.....................................................................................................340
8.2 数据操作通用框架.................................................................................................344
8.2.1 框架的提炼和设计...............................................................................................347
8.2.2 增、删、改、查框架实现.........................................................................................352
8.3 商品类别管理功能的实现...........................................................................................356
8.3.1 创建Session Bean................................................................................................357
8.3.2 EJB配置.........................................................................................................358
8.3.3 创建Category相关类实现..........................................................................................360
8.3.4 Web配置.........................................................................................................361
8.3.5 创建Category.jsp................................................................................................362
8.4 商品管理功能的实现................................................................................................364
8.4.1 创建ProductManager..............................................................................................364
8.4.2 EJB配置.........................................................................................................366
8.4.3 创建Product相关类实现...........................................................................................368
8.4.4 Web配置.........................................................................................................369
8.4.5 创建product.jsp.................................................................................................370
8.4.6 商品图片上传功能................................................................................................374
8.5 商品批量查询和多页显示............................................................................................376
8.5.1 DAO模式.........................................................................................................377
8.5.2 Strut框架下设计和实现...........................................................................................385
8.5.3 页导航条实现....................................................................................................388
8.6 购物车功能的实现..................................................................................................393
8.6.1 有状态Session Bean..............................................................................................393
8.6.2 Web功能实现.....................................................................................................396
8.7 小结..............................................................................................................399
Platform: |
Size: 31514707 |
Author: fengbozs@163.com |
Hits:
Description: iiitAccessServer是一个用Java编写的基于规则的企业鉴别系统。它作为一个服务器工作,能够用于可以打开一个socket的任何编程语言。服务器从LDAP取回它的数据,将它按优化过的格式保存在一个或多个MySQL数据库,用作一个执久的二级缓存以取得高性能。整个系统设计为可扩展的和容错的.zip-iiitAccessServer Java is a preparation of the rules-based enterprise authentication systems. As a server, can be used to open a socket in any programming language. LDAP server to recover from its data, it will be optimized according to the format stored in a MySQL database or for a long two bailiffs cache to achieve high performance. The entire system is designed to be scalable and fault-tolerance. Zip
Platform: |
Size: 320512 |
Author: 邓耀 |
Hits:
Description: java高速缓存和连接池对访问数据库性能的影响-java cache and connection pool to access the database performance of
Platform: |
Size: 180224 |
Author: 唐财爷 |
Hits:
Description: (Java Caching System)基于数据库的WEB应用程序加上缓存,以提高性能-(Java Caching System)- based database applications with Web cache to improve performance
Platform: |
Size: 7168 |
Author: wwh |
Hits:
Description: cache4j是一个有简单API与实现快速的Java对象缓存。它的特性包括:在内存中进行缓存,设计用于多线程环境,两种实现:同步与阻塞,多种缓存清除策略:LFU, LRU, FIFO,可使用强引用(strong reference)与软引用(soft reference)存储对象。-cache4j is a simple API and achieving rapid Java Object Cache. Its features include : in memory for caching, designed for multi-threaded environment, the two realized : synchronous and obstruction, cache removal strategies : LFU, LRU, FIFO, can be invoked to use strong (strong reference) with the use of soft (soft referenc e) Storage object.
Platform: |
Size: 51200 |
Author: ytr |
Hits:
Description: 网络代理服务器的设计与实现
实现对网络的管理,有网页缓存,时间管理等-Network Proxy Server Design and Implementation of the networks management, a web cache, time management, etc.
Platform: |
Size: 186368 |
Author: qingbai |
Hits:
Description: 是一个比较好的java书籍,程序员必参考的一本好书,供大家参考!-Is a relatively good java books, programmers must reference a good book for reference!
Platform: |
Size: 16706560 |
Author: 曲烘志 |
Hits:
Description: Java局域网监听器
监听本地网段(同个路由器内的网段)指定IP的IP数据包.
原理是ARP欺骗的方法,欺骗了目标IP的机器的ARP缓存以及本地路由器内的ARP表,让路由器跟目标IP之间的数据都必须经过运行这个软件的机器。
因为涉及到数据链路层的数据包操作,需要JPCAP这个包来增加JAVA对数据链路层的支持,所以要运行这个软件除了虚拟机还需要安装winpcap(windows)/libpcap(linux)+JPCAP才能运行。这3个包在网上都搜索下就可以找到了。
我打包成了.JAR文件,如果安装过WINPCAP/LIBPCAP+JPCAP,双击运行即可.源代码解压即可-Java LAN listener monitor the local network segment (with a router within the network segment) Specify the IP packet IP. The principle of ARP spoofing is to deceive the target IP of the machine as well as local router ARP cache of ARP table, so that the router with the IP data between the target must be running the software of the machine. Because of the data link layer packets, you need to JPCAP the JAVA package to increase the data link layer support, so apart from the software to run virtual machines also need to install winpcap (windows)/libpcap (linux) JPCAP to run . This three packages are in the online search can be found under. I became a pack. JAR file, if installed WINPCAP/LIBPCAP+ JPCAP, double-click to run. Decompress the source code can be
Platform: |
Size: 22528 |
Author: James |
Hits:
Description: 野蔷薇社区论坛YeQiangWeiClub v1.0 M2 JSP源码版
程序简介:
社区文章采用的是平板、树形自由选择的两种展示方式,社区整体布局采用左右分帧,这样的结构更适合版面较多的网站使用!
社区支持无限级分类,左侧工具栏静态化再多的版面也不会影响速度。
大量的使用高性能缓存使得软件在高并发下对数据库的压力降到最低!支持分布式Cache!
软件经过优秀的用户体验专家和交互设计师指点注重每一个细节的设计!
DIV+CSS架构页面,使得更换样式变得异常简单,让网友浏览大数据量网页没有卡住的感觉!
-err
Platform: |
Size: 471040 |
Author: wokaoxu |
Hits:
Description: Systemjc检测JSP服务器内存中的Ajax程序.
-JSP server memory Systemjc detection of Ajax procedures.
Platform: |
Size: 689152 |
Author: KTGG |
Hits:
Description: 可以监听本地网段(同个路由器内的网段)指定IP的IP数据包.
原理是ARP欺骗的方法,欺骗了目标IP的机器的ARP缓存以及本地路由器内的ARP表,让路由器跟目标IP之间的数据都必须经过运行这个软件的机器。
因为涉及到数据链路层的数据包操作,需要JPCAP这个包来增加JAVA对数据链路层的支持,所以要运行这个软件除了虚拟机还需要安装winpcap(windows)/libpcap(linux)+JPCAP才能运行。-Can monitor the local network segment (with a router within the network segment) Specify the IP packet IP. The principle of ARP spoofing is to deceive the target IP of the machine as well as local router ARP cache of ARP table, Let the router with the IP data between the target must be running the software of the machine. Because of the data link layer packets, you need to JPCAP the JAVA package to increase the data link layer support, so apart from the software to run virtual machines also need to install winpcap (windows)/libpcap (linux) JPCAP to run .
Platform: |
Size: 23552 |
Author: scnuhins |
Hits:
Description: jive 论坛所有的java源码,包括cache,factory,singlon等模式,很好的学习资源。-jive forum for all java source code, including the cache, factory, singlon such as models, good learning resources.
Platform: |
Size: 359424 |
Author: xjx |
Hits:
Description: BlogMethods Basic(基础版) v1.0.0 Web安装包
BlogMethods Basic(基础版)是一套免费授权的博客建站软件,可以满足专业个人博客的建站需要,同时也能满足企业的基本博客建站需要。
主要功能:
免费 - 免费下载和使用。
标签支持 - 用标签替代传统的目录分类,让你更加有效的组织内容。
主题支持 - 软件自带8种主题样式,更多主题可以在BlogMethods网站下载,也可以自定义主题或者对原有主题进行修改。
高性能 - 基于Cache的内容生成机制,让BlogMethods Basic在大访问量的情况下具有更好的性能。
全文检索 - 支持对文章的全文检索。
Ajax支持 - 采用Ajax技术来更好的加强用户体验。
文件和图片管理 - 通过文件管理来有效的管理博客中要引用的文件和图片,支持以“缩略图”方式浏览图片文件。
垃圾评论过滤 - 通过设置多种过滤条件,系统自动智能的过滤垃圾评论和引用。
Platform: |
Size: 12094464 |
Author: 柳惠 |
Hits:
Description: java一个国内的开源Java缓存系统请认真阅读您的文件包然后写出其具体功能(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。系统会自动删除-java a domestic system of open-source Java cache, please carefully read your paper packet and then write their specific functions (at least 20 words). As far as possible not to let the station master to spend time in your note on the amendment. Compressed packets can not extract the password. The system will automatically delete
Platform: |
Size: 83968 |
Author: zhongxun |
Hits:
Description: 缓存设计详解,对缓存在web应用上的设计做了比较全面的阐述.-Cache design Xiangjie, to the cache in the design of web applications have done a more comprehensive elaboration.
Platform: |
Size: 616448 |
Author: 谢超 |
Hits:
Description: Cache Simulator implementing block placement and update policy
Platform: |
Size: 850944 |
Author: Vijay |
Hits:
Description: java缓存实现与spring托管的技术实现教程-java cache implementation with spring Hosting
Platform: |
Size: 302080 |
Author: xuyunet |
Hits:
Description: java缓存的应用,了解java缓存的使用,更好的掌握java语言(Java cache applications, to understand the use of Java cache, better grasp of the Java language)
Platform: |
Size: 523264 |
Author: 432_321
|
Hits:
Description: 缓存操作类,将程序经常要调用的对象存在内存中,以遍其使用时可以快速调用。(Cache operation class, the object that the program often calls is in memory, can be called quickly when it is used.)
Platform: |
Size: 2048 |
Author: wangmeng1991
|
Hits: