SpaceDataSource
or SpaceSynchronizationEndpoint
instead.@Deprecated public interface ManagedDataSource<T>
DataProvider
,
DataPersister
Modifier and Type | Field and Description |
---|---|
static String |
NUMBER_OF_PARTITIONS
Deprecated.
use this constant to get from the Properties the number of partitions
|
static String |
STATIC_PARTITION_NUMBER
Deprecated.
use this constant to get from the Properties the partition number
|
Modifier and Type | Method and Description |
---|---|
void |
init(Properties prop)
Deprecated.
Initialize and configure the data source using given properties.
Called when space is started. The properties are loaded from a file that can be defined in the space schema or as a property named: space-config.ExternalDataSource.properties-file partitionId and number of partitions are also in the Properties - can be read with STATIC_PARTITION_NUMBER and NUMBER_OF_PARTITIONS |
DataIterator<T> |
initialLoad()
Deprecated.
Creates and returns an iterator over all the entries that should be loaded into
space. |
void |
shutdown()
Deprecated.
Close the data source and clean any used resources.
Called before space shutdown. |
static final String NUMBER_OF_PARTITIONS
static final String STATIC_PARTITION_NUMBER
void init(Properties prop) throws DataSourceException
prop
- - contains user defined param and Partition dataDataSourceException
DataIterator<T> initialLoad() throws DataSourceException
Creates and returns an iterator over all the entries that should be loaded into
space.
DataIterator
or null if no data should be loaded into spaceDataSourceException
void shutdown() throws DataSourceException
DataSourceException
Copyright © GigaSpaces.