Class CassandraSpaceDataSourceFactoryBean
java.lang.Object
org.openspaces.persistency.cassandra.CassandraSpaceDataSourceFactoryBean
- All Implemented Interfaces:
ClusterInfoAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>, org.springframework.beans.factory.InitializingBean
public class CassandraSpaceDataSourceFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ClusterInfoAware
A
FactoryBean for creating a singleton instance of CassandraSpaceDataSource.- Since:
- 9.1.1
- Author:
- Dan Kilman
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaugmentInitialLoadEntries(boolean augmentInitialLoadEntries) voiddestroy()protected CassandraSpaceDataSourceConfigurerClass<?> booleanvoidsetBatchLimit(int batchLimit) voidsetCassandraDataSource(org.apache.cassandra.cql.jdbc.CassandraDataSource cassandraDataSource) voidsetClusterInfo(ClusterInfo clusterInfo) Sets the cluster information.voidsetDynamicPropertyValueSerializer(PropertyValueSerializer dynamicPropertyValueSerializer) voidsetFixedPropertyValueSerializer(PropertyValueSerializer fixedPropertyValueSerializer) voidsetHectorClient(HectorCassandraClient hectorClient) voidsetInitialLoadQueryScanningBasePackages(String... initialLoadQueryScanningBasePackages) voidsetMaximumNumberOfConnections(int maximumNumberOfConnections) voidsetMinimumNumberOfConnections(int minimumNumberOfConnections)
-
Constructor Details
-
CassandraSpaceDataSourceFactoryBean
public CassandraSpaceDataSourceFactoryBean()
-
-
Method Details
-
getConfigurer
-
setFixedPropertyValueSerializer
- See Also:
-
setDynamicPropertyValueSerializer
public void setDynamicPropertyValueSerializer(PropertyValueSerializer dynamicPropertyValueSerializer) - See Also:
-
setCassandraDataSource
public void setCassandraDataSource(org.apache.cassandra.cql.jdbc.CassandraDataSource cassandraDataSource) - See Also:
-
setHectorClient
- See Also:
-
setMinimumNumberOfConnections
public void setMinimumNumberOfConnections(int minimumNumberOfConnections) - See Also:
-
setMaximumNumberOfConnections
public void setMaximumNumberOfConnections(int maximumNumberOfConnections) - See Also:
-
setBatchLimit
public void setBatchLimit(int batchLimit) - See Also:
-
setInitialLoadQueryScanningBasePackages
- See Also:
-
setClusterInfo
Description copied from interface:ClusterInfoAwareSets the cluster information.Note, 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
ClusterInfoAwareshould take into account the fact that the cluster info provided might be null.- Specified by:
setClusterInfoin interfaceClusterInfoAware- Parameters:
clusterInfo- The cluster information to be injected- See Also:
-
augmentInitialLoadEntries
public void augmentInitialLoadEntries(boolean augmentInitialLoadEntries) - See Also:
-
afterPropertiesSet
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<CassandraSpaceDataSource>
-
destroy
-