Easy-Cassandra 1.1.0-RC2

20 views
Skip to first unread message

Otávio Gonçalves de Santana

unread,
Jul 31, 2012, 12:27:26 PM7/31/12
to easy-ca...@googlegroups.com
Launched new version of the Easy-Cassandra.

In this new version there are two Persistence's client, but these is for many nodes. Both use many client and can do all that Classic Persistence does, but balance the request in many Cassandra's clients.
The PersistenceRandomClient uses in randomly mode and the PersistenceSequencialClient uses in sequential mode.

For use it you need add some host inside EasyCassandraManager and then get it with keyspace.
Bellow the sample:


EasyCassandraManager.getPersistence("anyKeyspace", "localhost", 9160);

EasyCassandraManager.getPersistence("otherKeyspace", "node2", 9160);

EasyCassandraManager.getPersistence("3keySpace", "node3", 9160);

PersistenceRandomClient persistenceRandom=(PersistenceRandomClient)EasyCassandraManager.getPersistenceRandom("javabahiaSingle");

PersistenceSequencialClient persistenceSequencial=(PersistenceSequencialClient)EasyCassandraManager.getPersistenceSequencial("javabahiaSequencial");



--
Atenciosamente.

Otávio Gonçalves de Santana
Reply all
Reply to author
Forward
0 new messages