@Deprecated public abstract class AbstractManagedDataSourceDelegator extends Object implements ManagedDataSource
Modifier and Type | Field and Description |
---|---|
protected ManagedDataSource |
dataSource
Deprecated.
|
NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER
Constructor and Description |
---|
AbstractManagedDataSourceDelegator(ManagedDataSource dataSource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
init(Properties properties)
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 |
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. |
protected final ManagedDataSource dataSource
public AbstractManagedDataSourceDelegator(ManagedDataSource dataSource)
public void init(Properties properties) throws DataSourceException
ManagedDataSource
init
in interface ManagedDataSource
properties
- - contains user defined param and Partition dataDataSourceException
public DataIterator initialLoad() throws DataSourceException
ManagedDataSource
Creates and returns an iterator over all the entries that should be loaded into
space.
initialLoad
in interface ManagedDataSource
DataIterator
or null if no data should be loaded into spaceDataSourceException
public void shutdown() throws DataSourceException
ManagedDataSource
shutdown
in interface ManagedDataSource
DataSourceException
Copyright © GigaSpaces.