me.prettyprint.cassandra.service.template
Class CassandraClusterFactory

java.lang.Object
  extended by me.prettyprint.cassandra.service.template.CassandraClusterFactory

public class CassandraClusterFactory
extends Object

Factory to remove Cassandra configuration concerns from DAO objects. This is invoked via a spring factory method that allows injection of the Hector Cluster object into the DAO.

Since:
Jan 14, 2011
Author:
david

Constructor Summary
CassandraClusterFactory()
           
 
Method Summary
static Cluster getInstance(String name, String host, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CassandraClusterFactory

public CassandraClusterFactory()
Method Detail

getInstance

public static Cluster getInstance(String name,
                                  String host,
                                  int port)


Copyright © 2011. All Rights Reserved.