Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.config.builder.storemanager
Class BdbStoreManagerBuilder

java.lang.Object
  extended by com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder
      extended by com.tangosol.coherence.config.builder.storemanager.BdbStoreManagerBuilder

All Implemented Interfaces:
BuilderCustomization, BinaryStoreManagerBuilder

public class BdbStoreManagerBuilder
extends AbstractStoreManagerBuilder

The BdbStoreManagerBuilder class builds an instance of a BerkeleyDBBinaryStoreManager.

Since:
Coherence 12.1.2
Author:
pfm 2011.11.30

Constructor Summary
BdbStoreManagerBuilder()
           

 

Method Summary
 java.lang.String getDirectory(com.tangosol.config.expression.ParameterResolver resolver)
          Return the path name for the root directory that the BDB file manager uses to store files in.
 java.lang.String getStoreName(com.tangosol.config.expression.ParameterResolver resolver)
          Specifies the name for a database table that the Berkeley Database JE store manager uses to store data in.
 java.lang.String getXmlInitParams(com.tangosol.config.expression.ParameterResolver resolver)
          Return the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.
 BerkeleyDBBinaryStoreManager realize(com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader, boolean fPaged)
          Realize a BinaryStoreManager given the provided parameters.
 void setDirectory(com.tangosol.config.expression.Expression expr)
          Set the BDB root directory where BDB stores files.
 void setStoreName(com.tangosol.config.expression.Expression expr)
          Set the BDB store (database table) name.
 void setXmlInitParams(com.tangosol.config.expression.Expression expr)
          Set the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.

 

Methods inherited from class com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder
getCustomBuilder, setCustomBuilder, validate

 

Constructor Detail

BdbStoreManagerBuilder

public BdbStoreManagerBuilder()

Method Detail

realize

public BerkeleyDBBinaryStoreManager realize(com.tangosol.config.expression.ParameterResolver resolver,
                                            java.lang.ClassLoader loader,
                                            boolean fPaged)
Realize a BinaryStoreManager given the provided parameters.
Parameters:
resolver - the ParameterResolver for resolving expressions and runtime parameters
loader - the ClassLoader for loading classes (if necessary)
fPaged - the flag indicating whether the map is paged

getDirectory

public java.lang.String getDirectory(com.tangosol.config.expression.ParameterResolver resolver)
Return the path name for the root directory that the BDB file manager uses to store files in. If not specified or specifies a non-existent directory, a temporary file in the default location is used.
Parameters:
resolver - the ParameterResolver
Returns:
the root directory

setDirectory

@Injectable
public void setDirectory(com.tangosol.config.expression.Expression expr)
Set the BDB root directory where BDB stores files.
Parameters:
expr - the directory name

getStoreName

public java.lang.String getStoreName(com.tangosol.config.expression.ParameterResolver resolver)
Specifies the name for a database table that the Berkeley Database JE store manager uses to store data in. Specifying this parameter causes the bdb-store-manager to use non-temporary (persistent) database instances. This is intended only for local caches that are backed by a cache loader from a non-temporary store, so that the local cache can be pre-populated from the disk on startup. This setting should not be enabled with replicated or distributed caches. Normally, the store name should be left unspecified, indicating that temporary storage is to be used.
Parameters:
resolver - the ParameterResolver
Returns:
the store name

setStoreName

@Injectable
public void setStoreName(com.tangosol.config.expression.Expression expr)
Set the BDB store (database table) name.
Parameters:
expr - the store name

getXmlInitParams

public java.lang.String getXmlInitParams(com.tangosol.config.expression.ParameterResolver resolver)
Return the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.
Parameters:
resolver - the ParameterResolver
Returns:
the init params

setXmlInitParams

@Injectable
public void setXmlInitParams(com.tangosol.config.expression.Expression expr)
Set the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.
Parameters:
expr - the XML init params

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.