欧美三区_成人在线免费观看视频_欧美极品少妇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 | 亚洲精品午夜在线观看 | 国产精品97 | 国产++欧洲韩国野花视频 | 能看的毛片网站 | 国产精品手机在线 | 91久久久久久久久 | 久久国产成人福利播放 | 国产色综合天天综合网 | 538亚洲欧美国产日韩在线精品 | 久久99国产亚洲精品观看 | 国产伦精品一区二区 | 无遮挡一级毛片私人影院 | 国产精品久久久久aaaa九色 | 99热久久国产精品免费看 | 精品免费国产一区二区三区 | 国产精品成人av | 四虎影视在线影院在线观看观看 | 日韩中文网 | 亚洲日韩中文字幕一区 | 爱爱视频天天干 | 69久久国产精品热88人妻 | 国产精品夜色一区二区三区 | 福利片在线看 | 久爱视频www在线播放 | 国产中文精品无码欧美综合小说 | 成人九色 | 精品久久久久久久久久 | 无码激情做A爰片毛片A片小说 | 99re99| 看个毛片 | 久久夜夜| 久操成人 | 很黄很粗很湿很刺激的视频 | 一级特黄欧美日韩免费视频 | 五月婷婷爱 | 亚洲综合日韩 | 欧美一级二级三级 | 日本理论片好看理论片 | 国产亚洲一区二区三区在线观看 | 久久精品2 |