Interface BackupMapConfig
- All Superinterfaces:
BuilderCustomization<Map>
- All Known Implementing Classes:
DistributedScheme.BackupConfig
The
BackupMapConfig
interface exposes the configuration needed
to create an instance of a backup map, which is used by the distributed cache
to store backup data.- Since:
- Coherence 12.1.2
- Author:
- pfm 2012.01.11
-
Method Summary
Modifier and TypeMethodDescriptiongetBackupSchemeName
(ParameterResolver resolver) Return the name of the caching scheme to use as a backup map.getDirectory
(ParameterResolver resolver) Return the root directory where the disk persistence manager stores files.int
getInitialSize
(ParameterResolver resolver) Return the initial buffer size in bytes for off-heap and file-mapped backup maps.int
getMaximumSize
(ParameterResolver resolver) Return the maximum buffer size in bytes for off-heap and file-mapped backup maps.int
resolveType
(ParameterResolver resolver, MapBuilder bldrPrimaryMap) Resolve the backup map type using the configuration specified by the application.Methods inherited from interface com.tangosol.coherence.config.builder.BuilderCustomization
getCustomBuilder, setCustomBuilder
-
Method Details
-
resolveType
Resolve the backup map type using the configuration specified by the application. The primary map is also need in special cases to determine the type.- Parameters:
resolver
- the ParameterResolverbldrPrimaryMap
- the primary map builder which may be used to determine the backup type- Returns:
- the backup map type enumerated in
BackingMapScheme
-
getBackupSchemeName
Return the name of the caching scheme to use as a backup map. Note that the scheme name is used as a key to lookup the scheme in the cache mapping. This is in contrast with the scheme name in the baseAbstractScheme
class which self-identifies a scheme object.- Parameters:
resolver
- the ParameterResolver- Returns:
- the scheme name
-
getDirectory
Return the root directory where the disk persistence manager stores files. This is only valid for file-mapped type.- Parameters:
resolver
- the ParameterResolver- Returns:
- the root directory
-
getInitialSize
Return the initial buffer size in bytes for off-heap and file-mapped backup maps.- Parameters:
resolver
- the ParameterResolver- Returns:
- the write maximum batch size
-
getMaximumSize
Return the maximum buffer size in bytes for off-heap and file-mapped backup maps.- Parameters:
resolver
- the ParameterResolver- Returns:
- the write maximum buffer size
-