|
GigaSpaces XAP 9.7.2 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 |
DATA_CLASS_PROPS
Deprecated. use this constant to get from the Properties the loaded class |
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 DATA_CLASS_PROPS
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 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |