Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.config.scheme
Class DistributedScheme.BackupConfig

java.lang.Object
  extended by com.tangosol.coherence.config.scheme.AbstractScheme
      extended by com.tangosol.coherence.config.scheme.DistributedScheme.BackupConfig

All Implemented Interfaces:
BuilderCustomization, BackupMapConfig, Scheme
Enclosing class:
DistributedScheme

public static class DistributedScheme.BackupConfig
extends AbstractScheme
implements BackupMapConfig

The DistributedScheme.BackupConfig class manages configuration for the partitioned cache backup map.


Constructor Summary
DistributedScheme.BackupConfig()
           

 

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.
 ParameterizedBuilder getCustomBuilder()
          Obtains the custom ParameterizedBuilder.
 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.
 void setBackupSchemeName(com.tangosol.config.expression.Expression expr)
          Set the name of the caching scheme to use as a backup map.
 void setCustomBuilder(ParameterizedBuilder bldr)
          Set the InstanceBuilder that builds the custom instance.
 void setDirectory(com.tangosol.config.expression.Expression expr)
          Set the root directory where the disk persistence manager stores files.
 void setInitialSize(com.tangosol.config.expression.Expression expr)
          Return the initial buffer size in bytes for off-heap and file-mapped backup maps.
 void setMaximumSize(com.tangosol.config.expression.Expression expr)
          Set the maximum buffer size in bytes for off-heap and file-mapped backup maps.
 void setType(com.tangosol.config.expression.Expression expr)
          Set the type of storage to hold the backup data.
protected  int translateType(java.lang.String sType)
          Translate the backup map type string.

 

Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validate

 

Constructor Detail

DistributedScheme.BackupConfig

public DistributedScheme.BackupConfig()

Method Detail

resolveType

public 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.
Specified by:
resolveType in interface BackupMapConfig
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

getDirectory

public 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.
Specified by:
getDirectory in interface BackupMapConfig
Parameters:
resolver - the ParameterResolver
Returns:
the root directory

setDirectory

@Injectable
public void setDirectory(com.tangosol.config.expression.Expression expr)
Set the root directory where the disk persistence manager stores files. This is only valid for file-mapped type.
Parameters:
expr - the directory name

getInitialSize

public int getInitialSize(com.tangosol.config.expression.ParameterResolver resolver)
Return the initial buffer size in bytes for off-heap and file-mapped backup maps.
Specified by:
getInitialSize in interface BackupMapConfig
Parameters:
resolver - the ParameterResolver
Returns:
the write maximum batch size

setInitialSize

@Injectable
public void setInitialSize(com.tangosol.config.expression.Expression expr)
Return the initial buffer size in bytes for off-heap and file-mapped backup maps.
Parameters:
expr - the initial buffer size

getMaximumSize

public int getMaximumSize(com.tangosol.config.expression.ParameterResolver resolver)
Return the maximum buffer size in bytes for off-heap and file-mapped backup maps.
Specified by:
getMaximumSize in interface BackupMapConfig
Parameters:
resolver - the ParameterResolver
Returns:
the write maximum buffer size

setMaximumSize

@Injectable
public void setMaximumSize(com.tangosol.config.expression.Expression expr)
Set the maximum buffer size in bytes for off-heap and file-mapped backup maps.
Parameters:
expr - the maximum buffer size

getBackupSchemeName

public 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.
Specified by:
getBackupSchemeName in interface BackupMapConfig
Parameters:
resolver - the ParameterResolver
Returns:
the scheme name

setBackupSchemeName

@Injectable(value="scheme-name")
public void setBackupSchemeName(com.tangosol.config.expression.Expression expr)
Set the name of the caching scheme to use as a backup map.
Parameters:
expr - the scheme name

setType

@Injectable
public void setType(com.tangosol.config.expression.Expression expr)
Set the type of storage to hold the backup data.
Parameters:
expr - the maximum buffer size

getCustomBuilder

public ParameterizedBuilder getCustomBuilder()
Obtains the custom ParameterizedBuilder.
Specified by:
getCustomBuilder in interface BuilderCustomization
Returns:
the ParameterizedBuilder

setCustomBuilder

public void setCustomBuilder(ParameterizedBuilder bldr)
Set the InstanceBuilder that builds the custom instance.
Specified by:
setCustomBuilder in interface BuilderCustomization
Parameters:
bldr - the InstanceBuilder

translateType

protected int translateType(java.lang.String sType)
Translate the backup map type string.
Parameters:
sType - the map type
Returns:
the translated type enumerated in BackingMapScheme

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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