`
hepeng19861212
  • 浏览: 146745 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
package com.pajk.rhino.model.domain; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import java.io.Serializable; import java.util.Date; public class BaseModel implements Serializable { private Date gmtCreated; private D ...
包含如下模块:cache(略)、context、jmx、remoting(略)、scheduling、scripting(略)等等。   JMX模块 查看org.springframework.jmx.export.annotation包下的注解,会使用即可。不作具体分析。   context模块 applicationContext接口: applicationContext实现的接口:通过EnvironmentCapable访问系统环境参数、通过ListableBeanFactory和HierarchicalBeanFactory作为bean容器、通过MessageSo ...
--------------------------org.springframework.beans---------------------------- CachedIntrospectionResults:用于辅助BeanWrapperImpl类,为了提高自省效率而作的cache。CachedIntrospectionResults并没有使用Introspector自带的对自省结果的缓存功能,而是自己实现了基于弱引用的cache。 BeanUtils:提供了一系列工具:根据class创建实例、查找class中的函数、获取class的PropertyDescriptor、在两个实例 ...
spring-core是spring一系列框架的基本工具包,其中主要包括几类工具:字节码增强、访问注解、数据类型转换等。 package说明: org.springframework.asm:字节码增强工具asm org.springframework.cglib:字节码增强工具cglib org.springframework.core ...
未完结版。业务逻辑代码 有点看不下去了,于是就放弃了。 1.网络层:   游戏代码中,网络服务器端 提供了两套实现,一套是SimpleNetServer,基于BIO(阻塞IO)的ServerSocket;另一套是NIONetServer,基于NIO(即非阻塞IO)

netty4.0_websocket压测

    博客分类:
  • java
Netty websocket server压力测试 硬件配置: 压测客户端和服务器端在同一台pc上。Pc配置: AMD A10-5800K APU with Radeon(tm) HD Graphics 3.80Ghz 四核 4G RAM 西数WDC WD10EZEX-60ZF5A0 ( 1 TB / 7200 转/分)  这个可以不写的 主要的测试目标分为:
一、通信架构 使用框架BlazeDS,这里略去不谈,感兴趣的同学,可以到adobe官网查看相关资料;和spring框架的整合,请自己google之。 基于AMF协议,自定义了AMFLogEndPoint extends AMFEndpoint和FlexSpringFactory implements FlexFactory。抛去AMF通信框架不谈,只讲自定义实现类。
一、通信架构:基于Mina 2.0.4  MdcInjectionFilter:用于记录相关信息到日志中,以便开发者进行bug诊断。 ByteAttackFilter:限制 最大连接数,最大活动连接数,BLOCKED_IPS,BLOCKED_PLAYER_IDS(虽然进行了这个判断,但是没有获取到playerId,所以不起过滤作用),字节数防洪 CmdAttackFilter:BLOCKED_IPS,BLOCKED_PLAYER_IDS(不起过滤作用),数据包防洪 ProtocolCodecFilter(ProtocolCodecFactory):用于消息的解码和编码P ...
(转载自http://blog.csdn.net/cd0425/article/details/4836803 ) 前台js插件ajaxfileupload+jquery的包 function ajaxFileUpload() { $("#loading") .ajaxStart(function(){ $(this).show(); }) .ajaxComplete(function(){ $(this).hide( ...
文章作者:Enjoy 转载请注明原文链接。   新配的服务器,居然没rz,sz等命令,只好自己安装了。 wget http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz tar zxf  rzsz-3.48.tar.gz 解完后居然是在src目录。 cd src make posix cp rz sz /usr/bin/ 就安装完了,但使用时,在上传下载完成都会提示: 引用 **** UNREGISTERED COPY ***** Please read the License Agreement in rz. ...
一、部署环境 客户端:windows xp,安装的是jprofiler_windows_5_1_4.exe 服务器端:centos,tomcat,安装的是jprofiler_linux_5_1_4.sh JProfiler5.1.4破解码:L-Larry_Lau@163.com#83192-56yozpwn6v3n#174   二、安装: 1.客户端的安装 安装过程这里略去.不过安装完后,jprofiler客户端会给出一段文本提示: Integration type: [Generic application] Selected JVM: Sun 1.6.0 ( ...
     早先开发过了一个系统,是基于google map的,但是google map的经纬度定位是有很大误差的,大概最大有1km左右。这次有个fj的客户想要这样一套系统,老大就让我改用mapabc,系统还是一样的系统,只不过地图换成flex 版的mapabc ...
步骤如下: 1.编辑tomcat/bin/catalina.sh vi catalina.sh  在其中“ # ----- Execute The Requested Command -----------------------------------------” 之前插入新的一行(中间没有换行),内容如下: CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=jdzz10.ucjoy.com -Dcom.sun.management.jmxremote -Dcom.sun.management. ...

初始化

    博客分类:
  • java
//: c07:PolyConstructors.java // Constructors and polymorphism // don't produce what you might expect. import com.bruceeckel.simpletest.*; abstract class Glyph { abstract void draw(); Glyph() { System.out.println("Glyph() before draw()"); draw(); System.out.println(&quo ...

继承与清除

    博客分类:
  • java
//: c07:Frog.java // Cleanup and inheritance. import com.bruceeckel.simpletest.*; class Characteristic { private String s; Characteristic(String s) { this.s = s; System.out.println("Creating Characteristic " + s); } protected void dispose() { System.out.println(&qu ...
Global site tag (gtag.js) - Google Analytics