欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

Hazelcast: Java分布式內存網格框架(平臺)

系統 3240 0

轉自:http://blog.csdn.net/iihero/article/details/7385641

?

網址:? http://www.hazelcast.com/

下邊是它的宣傳內容:

hazelcast是一個開放源碼集群和高度可擴展的數據分發平臺,這是為Java:
1. 快如閃電;數以千計的運算/秒。
2. 故障安全;崩潰后沒有丟失數據。
3. 作為新服務器的動態調整 。
4. 超級簡單的使用 ,包括一個單獨的jar。

Hazelcast與各種分布式數據結構,分布式緩存功能,彈性的性質,memcache的支持,與Spring和Hibernate的集成,更重要的是這么多的快樂用戶,是功能豐富,企業的準備和開發人員友好的內存數據網格解決方案。

Hazelcast是一個Java的開源分布式內存實現,它具有以下特性:

01??? Distributed implementations of java.util.{Queue, Set, List, Map}
02??? Distributed implementation of java.util.concurrent.ExecutorService
03??? Distributed implementation of java.util.concurrency.locks.Lock
04??? Distributed Topic for publish/subscribe messaging
05??? Transaction support and J2EE container integration via JCA
06??? Distributed listeners and events
07??? Support for cluster info and membership events
08??? Dynamic HTTP session clustering
09??? Dynamic clustering
10??? Dynamic scaling to hundreds of servers
11??? Dynamic partitioning with backups
12??? Dynamic fail-over
13??? Super simple to use; include a single jar
14??? Super fast; thousands of operations per sec.
15??? Super small; less than a MB
16??? Super efficient; very nice to CPU and RAM

安裝也非常方便:

1??? Download hazelcast-version.zip from www.hazelcast.com
2??? Unzip hazelcast-version.zip file
3??? Add hazelcast.jar file into your classpath

要使用分布式的Map,只需要以下代碼即可實現:

?

1
2
3
4
5
6
7
8
9
10
11
12
13
import com.hazelcast.core.Hazelcast;
import java.util.Map;
import java.util.Collection;
?
Map<String, Customer> mapCustomers = Hazelcast.getMap( "customers" );
mapCustomers.put( "1" , new Customer( "Joe" , "Smith" ));
mapCustomers.put( "2" , new Customer( "Ali" , "Selam" ));
mapCustomers.put( "3" , new Customer( "Avi" , "Noyan" ));
?
Collection<Customer> colCustomers = mapCustomers.values();
for (Customer customer : colCustomers) {
???? // process customer
}

?

Hazelcast的官網上面有一個非常直觀的視頻:http://www.hazelcast.com/screencast.jsp,建議有興趣的朋友花10分鐘時間看看。

還有一份PDF可以參考:http://roma.javaday.it/javaday2010/sites/default/files/ClusteringHazelcast-javaday.pdf。

Hazelcast作為一款與ZooKeeper類似的開源實現,我在網上找了一篇相關的文章:http://blog.armstrongconsulting.com/?p=132 在這篇文章中有一段這樣寫道:

I had occasional hangs with Hazelcast 1.8.4 which caused me to switch to Zookeeper. As expected, Zookeeper was a lot harder to use than Hazelcast – you need Zookeeper installed on 3 servers. There’s no official java client, just some recipes and I found an implementation of Zookeeper locks called Cages on google code. For a java developer, Hazelcast is obviously way easier to use.?

另外,在Hazelcast的官方文檔中,提到了Hazelcast的集群機制:

If there is no existing node, then the node will be the first member of the cluster. If multicast is enabled then it will start a multicast listener so that it can respond to incoming join requests. Otherwise it will listen for join request coming via? TCP/IP .

If there is an existing cluster already, then the oldest member in the cluster will receive the join request and check if the request is for the right group. If so, the oldest member in the cluster will start the join process.

In the join process, the oldest member will:

  • send the new member list to all members

  • tell members to sync data in order to balance the data load

Every member in the cluster has the same member list in the same order. First member is the oldest member so if the oldest member dies, second member in the list becomes the first member in the list and the new oldest member.

?

從上邊的文字來看,它的這種集群機制是內置的。可以拿來直接使用。

它分好幾種版本:

hazelcast企業版

hazelcast企業版(EE)商業授權版的Hazelcast。 ? 它有附加功能,如彈性記憶和安全。

hazelcast彈性記憶

默認情況下,,Hazelcast商店的分布式數據(映射條目,隊列中的項目)這是垃圾收集的Java堆。 ? 為您堆變大了,垃圾收集停頓幾十秒,嚴重影響應用程序的性能和響應時間可能會導致您的應用程序。 ? 彈性記憶Hazelcast離堆內存存儲,以避免GC暫停。 ? 即使你有TB的內存有大量的更新緩存,GC將有幾乎沒有影響;導致更多的可預見的延遲和吞吐量。

安全

hazelcast安全性是基于JAAS的可插拔的安全框架,可用于驗證群集成員和客戶,做客戶端操作的訪問控制檢查。 與安全框架,采取控制誰可以是群集的一部分,或作為客戶端和業務允許或不連接。 ? 不要讓未經授權的當事方接觸群集!

檢查出的 安全文件 詳細信息。

hazelcast社區版

hazelcast CE是一個開放源碼集群和高度可擴展的數據分發平臺,為Java。 ? hazelcast讓你輕松跨越群集的份額和分割您的應用程序數據。 ? hazelcast是一個對等的解決方案(沒有主節點,每個節點是一個對),所以不存在單點故障。 ? JVM的正在運行Hazelcast的動態集群。

hazelcast是純Java是簡單,只要使用java.util中。{隊列,地圖,集,名單}。 ? 只需添加到你的classpath hazelcast.jar開始編碼

Hazelcast: Java分布式內存網格框架(平臺)


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 久久99国产精品成人欧美 | 天堂网中文字幕 | 天天草人人草 | 91国内外精品自在线播放 | 一级免费a | 久久99深爱久久99精品 | 91短视频免费 | 男女全黄做爰视频免费看 | 欧美一级特黄aa大片视频 | 欧美精品在线不卡 | 99精品欧美一区二区三区综合在线 | 日本a级大片 | 欧美精品欧美极品欧美激情 | 欧美亚洲激情在线 | 99re6在线| 国产人妻人伦精品潘金莲 | 日韩一区二区在线观看 | 色3344 | 天天噜日日噜夜夜噜 | 欧美日韩精品一区二区三区 | 久久国内精品 | 狠狠干91| 亚洲综合久久伊人热 | www黄色大片| 久久精品人人做人人看最新章 | 日韩在线黄色片 | 精品日韩欧美国产一区二区 | 婷婷色综合久久 | 一区二区三区在线观看视频 | 啪啪免费网站 | 五月激情综合网 | 欧美日韩不卡合集视频 | 日本草草影院 | 国产成人理在线观看视频 | 欧美精品38videos性欧美 | 亚洲99 | 午夜视频国语 | 杀破狼在线观看 | 国产在线视频2019最新视频 | 69国产成人精品午夜福中文 | 亚洲一区中文字幕在线观看 |