me.prettyprint.cassandra.connection.factory
Class HClientFactoryProvider
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HClientFactoryProvider
public HClientFactoryProvider()
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.