Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.config.scheme
Interface BackupMapConfig

All Superinterfaces:
BuilderCustomization
All Known Implementing Classes:
DistributedScheme.BackupConfig

public interface BackupMapConfig
extends BuilderCustomization

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
 java.lang.String getBackupSchemeName(com.tangosol.config.expression.ParameterResolver resolver)
          Return the name of the caching scheme to use as a backup map.
 java.lang.String getDirectory(com.tangosol.config.expression.ParameterResolver resolver)
          Return the root directory where the disk persistence manager stores files.
 int getInitialSize(com.tangosol.config.expression.ParameterResolver resolver)
          Return the initial buffer size in bytes for off-heap and file-mapped backup maps.
 int getMaximumSize(com.tangosol.config.expression.ParameterResolver resolver)
          Return the maximum buffer size in bytes for off-heap and file-mapped backup maps.
 int resolveType(com.tangosol.config.expression.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(com.tangosol.config.expression.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 ParameterResolver
bldrPrimaryMap - the primary map builder which may be used to determine the backup type
Returns:
the backup map type enumerated in BackingMapScheme

getBackupSchemeName

java.lang.String getBackupSchemeName(com.tangosol.config.expression.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 base AbstractScheme class which self-identifies a scheme object.
Parameters:
resolver - the ParameterResolver
Returns:
the scheme name

getDirectory

java.lang.String getDirectory(com.tangosol.config.expression.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(com.tangosol.config.expression.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(com.tangosol.config.expression.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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.