me.prettyprint.cassandra.connection.factory
Class HClientFactoryProvider

java.lang.Object
  extended by me.prettyprint.cassandra.connection.factory.HClientFactoryProvider

public class HClientFactoryProvider
extends Object

Provides different factory implementations based on CassandraHostConfigurator settings.

Author:
patricioe (Patricio Echague - patricioe@gmail.com)

Constructor Summary
HClientFactoryProvider()
           
 
Method Summary
static HClientFactory createFactory(CassandraHostConfigurator chc)
          Create a HClientFactory based on the setting in chc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HClientFactoryProvider

public HClientFactoryProvider()
Method Detail

createFactory

public static HClientFactory createFactory(CassandraHostConfigurator chc)
Create a HClientFactory based on the setting in chc.

Parameters:
chc - a CassandraHostConfigurator instance
Returns:
an implementation of HClientFactory
Throws:
RuntimeException - if it couldn't instantiate a factory class given by CassandraHostConfigurator parameters


Copyright © 2013. All Rights Reserved.