|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.persistency.cassandra.CassandraSpaceDataSourceConfigurer
public class CassandraSpaceDataSourceConfigurer
A configurer for creating CassandraSpaceDataSource
instances.
Field Summary | |
---|---|
protected boolean |
augmentInitialLoadEntries
|
protected int |
batchLimit
|
protected CassandraDataSource |
cassandraDataSource
|
protected ClusterInfo |
clusterInfo
|
protected PropertyValueSerializer |
dynamicPropertyValueSerializer
|
protected PropertyValueSerializer |
fixedPropertyValueSerializer
|
protected HectorCassandraClient |
hectorClient
|
protected String[] |
initialLoadQueryScanningBasePackages
|
protected int |
maximumNumberOfConnections
|
protected int |
minimumNumberOfConnections
|
Constructor Summary | |
---|---|
CassandraSpaceDataSourceConfigurer()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PropertyValueSerializer fixedPropertyValueSerializer
protected PropertyValueSerializer dynamicPropertyValueSerializer
protected CassandraDataSource cassandraDataSource
protected HectorCassandraClient hectorClient
protected int minimumNumberOfConnections
protected int maximumNumberOfConnections
protected int batchLimit
protected String[] initialLoadQueryScanningBasePackages
protected boolean augmentInitialLoadEntries
protected ClusterInfo clusterInfo
Constructor Detail |
---|
public CassandraSpaceDataSourceConfigurer()
Method Detail |
---|
public CassandraSpaceDataSourceConfigurer fixedPropertyValueSerializer(PropertyValueSerializer fixedPropertyValueSerializer)
PropertyValueSerializer.fromByteBuffer(java.nio.ByteBuffer)
Note: This property must correspond to the property set on
CassandraSpaceSynchronizationEndpoint
.
(default: Java object deserialization)
fixedPropertyValueSerializer
- The PropertyValueSerializer
to use.
this
instance.public CassandraSpaceDataSourceConfigurer dynamicPropertyValueSerializer(PropertyValueSerializer dynamicPropertyValueSerializer)
PropertyValueSerializer.fromByteBuffer(java.nio.ByteBuffer)
.
Note: This property must correspond to the property set on
CassandraSpaceSynchronizationEndpoint
.
(default DynamicPropertyValueSerializer
)
dynamicPropertyValueSerializer
- the PropertyValueSerializer
to use.
this
instance.public CassandraSpaceDataSourceConfigurer cassandraDataSource(CassandraDataSource cassandraDataSource)
cassandraDataSource
- An instance of CassandraDataSource
configured
to use CQL version 2.0.0.
this
instance.public CassandraSpaceDataSourceConfigurer hectorClient(HectorCassandraClient hectorClient)
hectorClient
- an instance of HectorCassandraClient
.
this
instance.public CassandraSpaceDataSourceConfigurer minimumNumberOfConnections(int minimumNumberOfConnections)
minimumNumberOfConnections
- Minimum number of cassandra-jdbc connections to maintain in the
connection pool. (default: 5)
this
instance.public CassandraSpaceDataSourceConfigurer maximumNumberOfConnections(int maximumNumberOfConnections)
maximumNumberOfConnections
- Maximum number of cassandra-jdbc connections to maintain in the
connection pool. (default: 30)
this
instance.public CassandraSpaceDataSourceConfigurer batchLimit(int batchLimit)
batchLimit
- Maximum number of rows that will be transferred in batches.
(default: 10000).
e.g. If batchLimit is set to 10000 and a certain query result set size is 22000,
then the query will be translated to 3 queries each with the CQL LIMIT argument set
to 10000.
this
instance.public CassandraSpaceDataSourceConfigurer initialLoadQueryScanningBasePackages(String[] initialLoadQueryScanningBasePackages)
initialLoadQueryScanningBasePackages
- array of base packages to scan for custom initial load query methods
marked with the SpaceInitialLoadQuery
annotation (default: null, scans nothing).
this
instance.public CassandraSpaceDataSourceConfigurer clusterInfo(ClusterInfo clusterInfo)
ClusterInfo
to be used with the SpaceDataSource
public CassandraSpaceDataSourceConfigurer augmentInitialLoadEntries(boolean augmentInitialLoadEntries)
augmentInitialLoadEntries
- feature switch for initial load entry augmentation with partition-specific query (default: true).
this
instance.public CassandraSpaceDataSource create()
CassandraSpaceDataSource
matching this configurer
configuration.
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |