自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

原创 ZooKeeper Overview

Design GoalsZooKeeper allows distributed processes to coordinate with each other through a shared hierarchal namespaceZooKeeperdata is kept in-memory, which means ZooKeeper can achieve high

2012-02-23 18:50:06 850

原创 类加载器

java.lang.Class 代表了Java应用程序在运行时所加载的类或接口,当一个类被加载时,JVM就自动为器生成一个Class对象。可以通过对象的getClass()方法获得Class实例,也可以通过类的静态常量class获得该Class对象。Class.getName()可以获得该类的名字(带命名空间)可以通过Class.forName()加载类或ClassLoader的loadC

2012-02-17 20:50:17 643

转载 Class

/*** 类初始化顺序:* * 1、超类静态变量;超类静态初始化块。--按代码排列顺序;* 2、子类静态变量;子类静态初始化块。--按代码排列顺序; * 3、所有的成员变量—包括该类,及它的父类中的成员变量--被分配内存空间,并赋予默认值(这里是第一次初始化成员变量)。如:subText in* SubClass constructor:null* 4、超类成员变量;超

2012-02-17 16:05:40 479

原创 Java基本操作符与数据类型

13 变量类型 :运算时,补码运算,运算器不知道符号位,自动溢出     long 64bit 9964L(l)     double 64bit 123.13D(d) 或e3     float   1123.f     double/0=Infinite或-Infinite     char unicode 16位     都是有符号的。     >>不认识符号位

2012-02-16 20:58:56 727

原创 Security and Authentication

Mongo SecurityYou authenticatea username and password (加密方式) in the context ofa particular database. Once authenticated, a normal user has full read and write access to the database. You

2012-02-14 14:40:30 916

原创 Shard Architechure

Architectural Overview ShardsIn a production situation, each shard will consist of multiple servers to ensure availability and automated failover.(Shardi中的3个均相同replica为了HA)Shard Keys

2012-02-13 20:36:05 1208

原创 Index

Basics Formally speaking, these indexes are implemented as "B-Tree" indexes.In the shell, you can create an index by calling the ensureIndex() function, and providing a document that specifi

2012-02-10 21:02:59 1234

原创 GridFS

GridFS SpecificationWhen to use GridFSThis page is under constructionWhen to use GridFSLots of files. GridFS tends to handle large numbers (

2012-02-10 16:08:29 787

原创 Misc

Maximum Document SizeMongoDB limits the data size of individual BSON objects/documents. At the time of this writing the limit is 16MB.并不是技术上的限制,只是一个规定而已。Specifically, BSON strings are UTF-8.

2012-02-10 14:28:59 489

原创 Object IDs

Object IDsDocuments in MongoDB required a key, _id, which uniquely identifies them.(只有_id建立索引之后,各个doc的_id才会不同,否则有可能相同)The _id FieldIf a user tries to insert a document with

2012-02-09 21:51:05 945

原创 MongoDB 学习笔记

(the little MongoDB book笔记)Install3. Create a new text file in the bin subfolder named mongodb.config4. Add a single line to your mongodb.config: dbpath=PATH_TO_WHERE_YOU_WANT_TO_STORE_YOUR_DA

2012-02-09 21:25:22 677

转载 MutiKeys

IntroductionMongo provides some functionality that is useful for text search and tagging.Multikeys (Indexing Values in an Array)The Mongo multikey feature can automatically index arrays of

2012-02-09 19:57:33 529

原创 Exception 笔记

public Throwable extends Object{            public Throwable()            public Throwable(String message)            public String getMessage()            public String toString()

2012-02-09 14:35:46 440

转载 JUNIT COOKBOOK

When you need to test something, here is what you do:Annotate a method with @org.junit.TestWhen you want to check a value, import org.junit.Assert.* statically, call assertTrue() and pass a boolea

2012-02-08 14:07:03 592

make的官方指南(中文版)

make的官方指南(中文版) 希望能对大家有帮助:)

2011-03-31

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除