Class AbstractManagedDataSourceDelegator
java.lang.Object
org.openspaces.persistency.patterns.AbstractManagedDataSourceDelegator
- All Implemented Interfaces:
ManagedDataSource
- Direct Known Subclasses:
BulkDataPersisterExceptionHandler
@Deprecated
public abstract class AbstractManagedDataSourceDelegator
extends Object
implements ManagedDataSource
Deprecated.
since 9.5
Base class that delegates execution to data source.
- Author:
- kimchy
-
Field Summary
FieldsFields inherited from interface com.gigaspaces.datasource.ManagedDataSource
NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER -
Constructor Summary
ConstructorsConstructorDescriptionAbstractManagedDataSourceDelegator(ManagedDataSource dataSource) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(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_PARTITIONSDeprecated.Creates and returns an iterator over all the entries that should be loaded into space.voidshutdown()Deprecated.Close the data source and clean any used resources.
Called before space shutdown.
-
Field Details
-
dataSource
Deprecated.
-
-
Constructor Details
-
AbstractManagedDataSourceDelegator
Deprecated.
-
-
Method Details
-
init
Deprecated.Description copied from interface:ManagedDataSourceInitialize 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- Specified by:
initin interfaceManagedDataSource- Parameters:
properties- - contains user defined param and Partition data- Throws:
DataSourceException
-
initialLoad
Deprecated.Description copied from interface:ManagedDataSourceCreates and returns an iterator over all the entries that should be loaded into space.- Specified by:
initialLoadin interfaceManagedDataSource- Returns:
- a
DataIteratoror null if no data should be loaded into space - Throws:
DataSourceException
-
shutdown
Deprecated.Description copied from interface:ManagedDataSourceClose the data source and clean any used resources.
Called before space shutdown.- Specified by:
shutdownin interfaceManagedDataSource- Throws:
DataSourceException
-