0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Hazelcast registry for DCell
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

>= 0
 Project Readme

DCell::Hazelcast

This provides a Hazelcast registry for DCell.

The Hazelcast adapter allows DCell to operate without a central registry like Redis or Zookeeper. It is using Hazelcast's distributed map data structure to implement the node registry and the global registry for DCell.

CAVEAT

This is currently a quick hack which has not seen intensive tests and does not provide any configuration options for Hazelcast yet.

Supported Platforms

JRuby (>= 1.7)

Prerequisites

Please follow the instructions for DCell.

Installation

Add this line to your application's Gemfile:

gem 'dcell-hazelcast'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install dcell-hazelcast

Usage

require 'dcell'
require 'dcell/registries/hazelcast'

DCell.start(:registry => {:adapter => 'hazelcast'})

Please see the DCell documentation for further details.

There is an executable example in examples/dcell-hazelcast.rb.

$ jruby -Ilib examples/dcell-hazelcast.rb -n master -p 7777
$ jruby -Ilib examples/dcell-hazelcast.rb -n node0 -p 7778

License

Hazelcast

Hazelcast is released under Apache License and the project is hosted at GitHub. It can be freely used in commercial or non-commercial applications.

DCell::Hazelcast

Copyright (c) 2012 Bernd Ahlers. See LICENSE.txt for further details.