Chan Chen Coding...

Scala / Java

SPARK环境搭建-WINDOWS版本

posted @ 2014-02-14 16:21 Chan Chen 阅读(3010) | 评论 (0)  编辑

Java CyclicBarrier介绍

posted @ 2013-05-22 09:57 Chan Chen 阅读(347) | 评论 (0)  编辑

Java 枚举7常见种用法
     摘要: DK1.5引入了新的类型——枚举。在 Java 中它虽然算个“小”功能,却给我的开发带来了“大”方便。  阅读全文

posted @ 2013-05-15 19:57 Chan Chen 阅读(227) | 评论 (0)  编辑

JVM参数设定

posted @ 2013-05-09 18:17 Chan Chen| 编辑

spring mvc singleton的验证

posted @ 2013-05-05 13:49 Chan Chen 阅读(648) | 评论 (0)  编辑

Java关键字final、static使用总结
     摘要:  根据程序上下文环境,Java关键字final有“这是无法改变的”或者“终态的”含义,它可以修饰非抽象类、非抽象类成员方法和变量。你可能出于两种理解而需要阻止改变:设计或效率。
final类不能被继承,没有子类,final类中的方法默认是final的。 final方法不能被子类的方法覆盖,但可以被继承。 final成员变量表示常量,只能被赋值一次,赋值后值不再改变。 final不能用于修饰构造方法。 注意:父类的private成员方法是不能被子类方法覆盖的,因此private类型的方法默认是final类型的。  阅读全文

posted @ 2013-05-04 15:10 Chan Chen 阅读(184) | 评论 (0)  编辑

Spring Quartz Corn Expression
     摘要: cron is a UNIX tool that has been around for a long time, so its scheduling capabilities are powerful and proven. TheCronTrigger class is based on the scheduling capabilities of cron.
CronTrigger uses "cron expressions", which are able to create firing schedules such as: "At 8:00am every Monday through Friday" or "At 1:30am every last Friday of the month".
Cron expressions are powerful, but can be pretty confusing. This tutorial aims to take some of the mystery out of creating a cron exp  阅读全文

posted @ 2013-05-03 16:56 Chan Chen 阅读(403) | 评论 (0)  编辑

Jps介绍以及解决jps无法查看某个已经启动的java进程问题
     摘要: jps类似linux的ps命令,不同的是ps是用来显示进程,而jps只显示java进程,准确的说是当前用户已启动的部分java进程信息,信息包括进程号和简短的进程command。  阅读全文

posted @ 2013-04-26 19:35 Chan Chen 阅读(341) | 评论 (0)  编辑

关于memcache取多值的性能比较
     摘要: 一次取多值的性能要高于多次取值  阅读全文

posted @ 2013-04-26 15:42 Chan Chen 阅读(292) | 评论 (0)  编辑

Pool resources using Apache's Commons Pool Framework
     摘要: Resource usage could prove critical at times for heavy-duty applications. Some famous Websites have shut down because of their inability to handle heavy loads. Most problems related to heavy loads can be handled, at a macro level, using clustering and load-balancing capabilities. Concerns remain at the application level with respect to excessive object creation and the availability of limited server resources like memory, CPU, threads, and database connections, which could represent potential bo  阅读全文

posted @ 2013-04-18 17:03 Chan Chen 阅读(305) | 评论 (0)  编辑

SEVERE: Error listenerStart
     摘要: Occurs when an exception is thrown in the contextInitialized method of a ServletContextListener  阅读全文

posted @ 2013-03-24 14:10 Chan Chen 阅读(207) | 评论 (0)  编辑

Avoiding the "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated" with HttpClient
     摘要: When developing a https application, your test server often doesn't have a (valid) SSL certificate. This will cause the following exception to be thrown when connecting your client to the test server: "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated".  阅读全文

posted @ 2013-02-23 11:50 Chan Chen 阅读(1880) | 评论 (0)  编辑

Java by value or by reference
     摘要: Java 操纵对象都是通过引用来实现的,所有的对象变量都是所指向的对象的引用,那也就是说所有对象变量的值并不是它所指向的对象本身,而是该对象的引用,这句话听起来可能有点让人犯晕,举个例子来说,String str = new String("aaa"); 这条语句的意思是 new 了一个值为 "aaa" 的字符串对象,然后用一个名字叫 str 的对象变量来指向它,保存它的引用  阅读全文

posted @ 2013-02-01 11:20 Chan Chen 阅读(195) | 评论 (0)  编辑

使用Log4j
     摘要: Log4j可以帮助调试(有时候debug是发挥不了作 用的)和分析,要下载和了解更详细的内容.  阅读全文

posted @ 2013-01-09 14:39 Chan Chen 阅读(191) | 评论 (0)  编辑

Spring AOP
     摘要: AOP技术即(面向切面编程)技术是在面向对象编程基础上的发展,AOP技术是对所有对象或一类对象编程。核心是在不增加代码的基础上,还增加了新的功能。AOP编程在开发框架本身用的比较多,而实际项目中,用的比较少。它是将分散在各个业务逻辑代码中的相同代码抽取出来形成一个独立的模块。  阅读全文

posted @ 2012-12-27 11:30 Chan Chen 阅读(199) | 评论 (0)  编辑

Understand JPA
     摘要: Need three artifacts to implement a JPA-compliant program:

An entity class
A persistence.xml file
A class through which you will insert, update, or find an entity
JPA is all about data persistence, so let's begin our examination of how it works with the data store design. Assume you have a CUSTOMER table, as in Table 1 below.  阅读全文

posted @ 2012-12-24 17:12 Chan Chen 阅读(475) | 评论 (0)  编辑

Understand The SerialVersionUID
     摘要: The serialVersionUID is used as a version control in a Serializable class. If you do not explicitly declare a serialVersionUID, JVM will do it for you automatically, based on various aspects of your Serializable class, as described in the Java(TM) Object Serialization Specification.  阅读全文

posted @ 2012-11-28 12:01 Chan Chen 阅读(372) | 评论 (0)  编辑

Runnable Callable Future and Executor in Java
     摘要: Executor就是Runnable和Callable的调度容器,Future就是对于具体的调度任务的执行结果进行查看,最为关键的是Future可以检查对应的任务是否已经完成,也可以阻塞在get方法上一直等待任务返回结果。Runnable和Callable的差别就是Runnable是没有结果可以返回的,就算是通过Future也看不到任务调度的结果的。   阅读全文

posted @ 2012-11-26 11:59 Chan Chen 阅读(341) | 评论 (0)  编辑

Java中的getName(), .class 和forName()的区别

posted @ 2012-11-23 23:09 Chan Chen 阅读(784) | 评论 (0)  编辑

Question Mark ? in Java

posted @ 2012-11-23 15:47 Chan Chen 阅读(250) | 评论 (0)  编辑

Understand TheadLocal

posted @ 2012-11-23 11:24 Chan Chen 阅读(597) | 评论 (0)  编辑

μJavaActors

posted @ 2012-11-20 15:33 Chan Chen 阅读(373) | 评论 (0)  编辑

对象的串行化(Serialization)

posted @ 2012-11-13 11:04 Chan Chen 阅读(146) | 评论 (0)  编辑

notify() and wait()

posted @ 2012-11-03 11:18 Chan Chen 阅读(186) | 评论 (0)  编辑

hashcode() and equal()

posted @ 2012-11-03 11:00 Chan Chen 阅读(272) | 评论 (0)  编辑

Spring依赖注入的三种方式

posted @ 2012-11-03 09:12 Chan Chen 阅读(5225) | 评论 (0)  编辑

show java gc log

posted @ 2012-08-31 16:03 Chan Chen 阅读(302) | 评论 (0)  编辑

Eclipse Memory Analyzer介绍

posted @ 2012-08-30 13:58 Chan Chen 阅读(3814) | 评论 (0)  编辑

Increase Console Output in Eclipse

posted @ 2012-08-17 13:23 Chan Chen 阅读(161) | 评论 (0)  编辑

memory leak tools

posted @ 2012-07-19 03:00 Chan Chen 阅读(198) | 评论 (0)  编辑

Virtual Machine Garbage Collection Tuning

posted @ 2012-07-18 08:29 Chan Chen 阅读(296) | 评论 (0)  编辑

Java Properties file examples

posted @ 2012-06-07 13:05 Chan Chen 阅读(353) | 评论 (0)  编辑

Eclipse HotKey

posted @ 2012-06-05 04:48 Chan Chen 阅读(111) | 评论 (0)  编辑

Java Thread Pool

posted @ 2012-06-04 03:58 Chan Chen 阅读(1579) | 评论 (0)  编辑

dom4j创建xml

posted @ 2012-05-02 11:51 Chan Chen 阅读(1500) | 评论 (0)  编辑

Morphia Java DAO

posted @ 2012-04-14 01:04 Chan Chen 阅读(607) | 评论 (0)  编辑

SBT Starting Guide

posted @ 2012-04-08 12:34 Chan Chen 阅读(130) | 评论 (0)  编辑

Java Exception FAQ Collection (On Going)

posted @ 2012-03-13 09:36 Chan Chen 阅读(173) | 评论 (0)  编辑

Scala First Taste

posted @ 2012-02-25 21:50 Chan Chen 阅读(221) | 评论 (0)  编辑

Tutorial: Play Framework, JPA, JSON, jQuery, & Heroku

posted @ 2012-02-24 22:46 Chan Chen 阅读(1062) | 评论 (0)  编辑

Java Reflection

posted @ 2012-02-18 15:50 Chan Chen 阅读(534) | 评论 (0)  编辑

Understand Dependency Injection

posted @ 2012-02-18 15:49 Chan Chen 阅读(134) | 评论 (0)  编辑

Why Did I Fall in Love with Play Framework

posted @ 2012-02-18 15:47 Chan Chen 阅读(159) | 评论 (0)  编辑

Start Avoiding Some Java 5 Coding Pitfalls

posted @ 2012-02-18 15:46 Chan Chen 阅读(203) | 评论 (0)  编辑

Wiquery Quick Start

posted @ 2011-08-12 12:31 Chan Chen 阅读(990) | 评论 (1)  编辑