|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SpaceDataSource
or SpaceSynchronizationEndpoint
instead.
@Deprecated public interface ManagedDataSource<T>
ManagedDataSource should be implemented when
initialization and shutdown operations are needed by the data source.
Usually in case of external databases - init() will establish a JDBC connection
and shutdown() will close it.
If the implementation requires configuration, it can be configured in external properties file.
The content of this file is passed to init()
The location of the properties file should be defined in the space schema or property:
space-config.ExternalDataSource.init-properties-file
DataProvider
,
DataPersister
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
init(Properties prop)
Deprecated. Initialize and configure the data source using given properties. |
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. |
Field Detail |
---|
static final String NUMBER_OF_PARTITIONS
static final String STATIC_PARTITION_NUMBER
Method Detail |
---|
void init(Properties prop) throws DataSourceException
prop
- - contains user defined param and Partition data
DataSourceException
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 space
DataSourceException
void shutdown() throws DataSourceException
DataSourceException
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |