public class CassandraSpaceDataSourceFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ClusterInfoAware
FactoryBean for creating a singleton instance of CassandraSpaceDataSource.| Constructor and Description |
|---|
CassandraSpaceDataSourceFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
augmentInitialLoadEntries(boolean augmentInitialLoadEntries) |
void |
destroy() |
protected CassandraSpaceDataSourceConfigurer |
getConfigurer() |
CassandraSpaceDataSource |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBatchLimit(int batchLimit) |
void |
setCassandraDataSource(org.apache.cassandra.cql.jdbc.CassandraDataSource cassandraDataSource) |
void |
setClusterInfo(ClusterInfo clusterInfo)
Sets the cluster information.
|
void |
setDynamicPropertyValueSerializer(PropertyValueSerializer dynamicPropertyValueSerializer) |
void |
setFixedPropertyValueSerializer(PropertyValueSerializer fixedPropertyValueSerializer) |
void |
setHectorClient(HectorCassandraClient hectorClient) |
void |
setInitialLoadQueryScanningBasePackages(String... initialLoadQueryScanningBasePackages) |
void |
setMaximumNumberOfConnections(int maximumNumberOfConnections) |
void |
setMinimumNumberOfConnections(int minimumNumberOfConnections) |
protected CassandraSpaceDataSourceConfigurer getConfigurer()
public void setFixedPropertyValueSerializer(PropertyValueSerializer fixedPropertyValueSerializer)
public void setDynamicPropertyValueSerializer(PropertyValueSerializer dynamicPropertyValueSerializer)
public void setCassandraDataSource(org.apache.cassandra.cql.jdbc.CassandraDataSource cassandraDataSource)
public void setHectorClient(HectorCassandraClient hectorClient)
public void setMinimumNumberOfConnections(int minimumNumberOfConnections)
public void setMaximumNumberOfConnections(int maximumNumberOfConnections)
public void setBatchLimit(int batchLimit)
public void setInitialLoadQueryScanningBasePackages(String... initialLoadQueryScanningBasePackages)
public void setClusterInfo(ClusterInfo clusterInfo)
ClusterInfoAwareNote, the cluster information is obtained externally from the application context which
means that this feature need to be supported by specific containers (and is not supported by
plain Spring application context). This means that beans that implement ClusterInfoAware should take into account the fact that the cluster info provided might be
null.
setClusterInfo in interface ClusterInfoAwareclusterInfo - The cluster information to be injectedCassandraSpaceDataSourceConfigurer.clusterInfo(org.openspaces.core.cluster.ClusterInfo)public void augmentInitialLoadEntries(boolean augmentInitialLoadEntries)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic CassandraSpaceDataSource getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>Copyright © GigaSpaces.