摘要:
Java的内部类包括四种类型:Static member classesMember classesLocal classesAnonymous classes1. Static member classStatic member class是类的一个静态成员,它只能访问上层类中的静态成员和静态方法... 阅读全文
摘要:
官方的解释这个类为:/** * A simple, durable, atomic K/V database. *Very inefficient*, should only be * used for occasional reads/writes. Every read/write hits d... 阅读全文
摘要:
Storm中涉及到了很多组件,例如nimbus,supervisor等等,在参考了这两篇文章之后,对这个有了更好的理解。Understanding the parallelism of a Storm topologyhttps://github.com/nathanmarz/storm/wiki/Understanding-the-parallelism-of-a-Storm-topologyhttp://www.cnblogs.com/yufengof/p/storm-worker-executor-task.html我们先理一下概念:一般对于物理节点来讲,我们部署的节点的类型包括nimb 阅读全文
摘要:
What’s the Difference Between ESP and CEP?http://www.complexevents.com/2006/08/01/what%E2%80%99s-the-difference-between-esp-and-cep/主要介绍了ESP和CEP的区别Event stream processing is focused more on high-speed querying of data in streams of events and applying mathematical algorithms to the event data.CEP is 阅读全文
摘要:
这个锁叫可重入锁。它其实语义上和synchronized差不多,但是添加了一些拓展的特性。A reentrant mutual exclusionLockwith the same basic behavior and semantics as the implicit monitor lock accessed usingsynchronizedmethods and statements, but with extended capabilities.我们重点看看它的源代码实现。在ReentrantLock类中很大一部分的函数是委托给这个类Sync来完成的。 /** Synchron... 阅读全文