Interface BackupMapConfig
-
- All Superinterfaces:
BuilderCustomization<Map>
- All Known Implementing Classes:
DistributedScheme.BackupConfig
public interface BackupMapConfig extends BuilderCustomization<Map>
TheBackupMapConfig
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getBackupSchemeName(ParameterResolver resolver)
Return the name of the caching scheme to use as a backup map.String
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 Detail
-
resolveType
int resolveType(ParameterResolver resolver, MapBuilder bldrPrimaryMap)
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
String getBackupSchemeName(ParameterResolver resolver)
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
String getDirectory(ParameterResolver resolver)
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
int getInitialSize(ParameterResolver resolver)
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
int getMaximumSize(ParameterResolver resolver)
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
-
-