- 浏览: 10156 次
- 性别:
- 来自: 杭州
-
最新评论
文章列表
获取系统安装目录
System.getenv("SystemRoot");
System.out.println(System.getenv("SystemRoot"));
机器名ip作用master192.168.50.200Namenode、master、jobtrackerslave1192.168.50.201Datanode、slave、tasktrackerslave2192.168.50.202Datanode、slave、tasktracker
1.修改机器名和hosts文件
1)修改机器名
$ vi /etc/hostname
2)修改hosts文件
vi /etc/hosts
127.0.0.1 localhost
192.168.50.200 master master
192.168.50.201 slave1 slave1 ...
原文地址:http://www.mobicents.org/slee/intro.html
Introduction
At the heart of Mobicents platform is a high-performance, scalable and fault tolerant Service Level Execution Environment. Following is a component overview of the SLEE engine:
处于Mobicents 平台的核心,拥有高性能、高稳定和高容错等级的运行环境。下图展示了SLEE的组件构成:
原文地址:http://www.mobicents.org/products.html
Mobicents is the first and only Open Source VoIP Java Platform and the best architecture to create, deploy and manage services and applications integrating voice, video and data across a range of IP and communications networks. It drives convergence in lev ...
http://wikis.sun.com/display/GlassFish/FaqGlassFishReallyFreeZh
GlassFish 真的免费吗?
*是的!*GlassFish 应用服务器是开源的,完全免费使用。Sun GlassFish Enterprise Server(以前称为 Sun Java System Application Server)是 Sun 的商业版本的 GlassFish,它具有不同的安装程序,也完全免费使用。
如果 GlassFish 和 Sun 的商业版产品都是免费的,那么 Sun 怎么赚钱呢?一句话,靠服务赚钱。Sun 通过销售 Sun Gla ...
转载:http://storyxsj.iteye.com/blog/494355
Mysql 二进制日志
---------------基本概念
定义:
二进制日志包含了所有更新了数据或者已经潜在更新了数据(例如,没有匹配任何行的一个DELETE)的所有语句。
作用:
1。二进制日志的主要目的是在恢复使能够最大可能地更新数据库,因为二进制日志包含备份后进行的所有更新。
2。二进制日志还用于在主复制服务器上记录所有将发送给从服务器的语句。
不良影响:
运行服务器时若启用二进制日志则性能大约慢1%。
如何启动:
通过 --log-bin=file选项可以启用
(更改my.ini ...
只有在执行save和input方法之前,才会执行prepareMode方法
http://www.docin.com/p-55133498.html
使用 EasyMock 进行单元测试
http://www.ibm.com/developerworks/cn/opensource/os-cn-easymock/
下载地址:
http://easymock.org/Downloads.html
EasyMock 默认只支持为接口生成 Mock 对象
1、构建Mock对象
单个Mock对象 java.sql.ResultSet
ResultSet mockResultSet = EasyMock.createMock(ResultSet.class);
多个 Mock 对象
IMocksControl control = ...
@Fetch(FetchMode.JOIN) 会使用left join查询 只产生一条sql语句
@Fetch(FetchMode.SELECT) 会产生N+1条sql语句
@Fetch(FetchMode.SUBSELECT) 产生两条sql语句 第二条语句使用id in (.....)查询出所有关联的数据
读书/学习 计划
《UML和模式应用> 3版
设计模式解析(第2版); 作者:Alan Shalloway James R.Trott 著徐言声译
Head First Design Pattern - 深入浅出设计模式 (浅显易懂的设计模式书)
敏捷软件开发原则,模式与实践 (设计经典中的经典, 必读)
重构-改善既有代码的设计 (关于重构的权威 必读)
数据库设计教程(第2版) 作者 Thomas M.Connolly;Carolyn E.Begg
2010-8-11
1、Spring Security
http://zh.zkoss.org/doc/devgui ...