GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.cassandra
Class HectorCassandraClientFactoryBean

java.lang.Object
  extended by org.openspaces.persistency.cassandra.HectorCassandraClientFactoryBean
All Implemented Interfaces:
DisposableBean, FactoryBean<HectorCassandraClient>, InitializingBean

public class HectorCassandraClientFactoryBean
extends Object
implements FactoryBean<HectorCassandraClient>, InitializingBean, DisposableBean

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
HectorCassandraClientFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
protected  HectorCassandraClientConfigurer getConfigurer()
           
 HectorCassandraClient getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setClusterName(String clusterName)
           
 void setColumnFamilyGcGraceSeconds(int columnFamilyGcGraceSeconds)
           
 void setHosts(String hosts)
           
 void setKeyspaceName(String keyspaceName)
           
 void setPort(int port)
           
 void setReadConsistencyLevel(CassandraConsistencyLevel readConsistencyLevel)
           
 void setWriteConsistencyLevel(CassandraConsistencyLevel writeConsistencyLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HectorCassandraClientFactoryBean

public HectorCassandraClientFactoryBean()
Method Detail

getConfigurer

protected HectorCassandraClientConfigurer getConfigurer()

setHosts

public void setHosts(String hosts)
See Also:
HectorCassandraClientConfigurer.hosts(String)

setPort

public void setPort(int port)
See Also:
HectorCassandraClientConfigurer#port(int)

setKeyspaceName

public void setKeyspaceName(String keyspaceName)
See Also:
HectorCassandraClientConfigurer.keyspaceName(String)

setClusterName

public void setClusterName(String clusterName)
See Also:
HectorCassandraClientConfigurer.clusterName(String)

setColumnFamilyGcGraceSeconds

public void setColumnFamilyGcGraceSeconds(int columnFamilyGcGraceSeconds)
See Also:
HectorCassandraClientConfigurer#columnFamilyGcGraceSeconds(int)

setReadConsistencyLevel

public void setReadConsistencyLevel(CassandraConsistencyLevel readConsistencyLevel)
See Also:
HectorCassandraClientConfigurer.readConsistencyLevel(CassandraConsistencyLevel)

setWriteConsistencyLevel

public void setWriteConsistencyLevel(CassandraConsistencyLevel writeConsistencyLevel)
See Also:
HectorCassandraClientConfigurer.writeConsistencyLevel(CassandraConsistencyLevel)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getObject

public HectorCassandraClient getObject()
                                throws Exception
Specified by:
getObject in interface FactoryBean<HectorCassandraClient>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<HectorCassandraClient>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<HectorCassandraClient>

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.