You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Willi Schönborn 00e366483c added list test for ReplicatedClusteredList 11 years ago
src added list test for ReplicatedClusteredList 11 years ago
.gitignore added more files to .gitignore 11 years ago
LICENSE intial commit 11 years ago
README github parser workaround 11 years ago
demo-assembly.xml implemented Map and added more demos 11 years ago
pom.xml added google collections testfw to dependencies 11 years ago

README

Clustered Collections
=============================================================================

The clustered-collections project aims to provide clusterable implementations
of the java collections framework. It has a small footprint due to a very
few dependencies.

It is not a replacement for caches! It lacks any eviction strategy nor does
it support persistence.


There are similar projects out there, e.g. KeptCollections(1). Target of this
project is to minimize dependencies and support a non-single-point-of-failure
architecture.


https://github.com/sarnowski/clustered-collections



Maven
=============================================================================

<dependency>
<groupId>com.github.sarnowski</groupId>
<artifactId>clustered-collections</artifactId>
<version>[1.0,2)</version>
</dependency>

<repository>
<id>sarnowski.github.com</id>
<url>http://sarnowski.github.com/repository</url>
</repository>


Usage
=============================================================================

import com.github.sarnowski.collections.*;


List<String> words =
ClusteredCollections.newReplicatedClusteredList("MyClusteredList");

Set<String> words =
ClusteredCollections.newReplicatedClusteredSet("MyClusteredSet");

Map<String,String> texts =
ClusteredCollections.newReplicatedClusteredMap("MyClusteredMap");


Demo
=============================================================================

You can start a demo for the collections with the *-demo.jar file.

$ java -Djgroups.bind_addr=192.168.0.5 \
-cp clustered-collections-*-demo.jar \
com.github.sarnowski.collections.demo.ReplicatedClusteredListDemo

Use your local network address.


Configuration
=============================================================================

For more informations about configuring the cluster setup, please have a look
at http://jgroups.org/. This project uses JGroups as it's underlying network
handler.


Compiling
=============================================================================

For compiling the source code by yourself, use Maven and just enter the
following command in the project directory:

$ mvn install

For building the demo jar, enter the following command:

$ mvn assembly:assembly

The demo jar will be created in the folder "target".


License
=============================================================================

Copyright (c) 2011 Tobias Sarnowski

See the LICENSE file.



Footnotes
=============================================================================

1) https://github.com/anthonyu/KeptCollections