Class BdbStoreManagerBuilder

All Implemented Interfaces:
BuilderCustomization<BerkeleyDBBinaryStoreManager>, BinaryStoreManagerBuilder

public class BdbStoreManagerBuilder extends AbstractStoreManagerBuilder<BerkeleyDBBinaryStoreManager>
The BdbStoreManagerBuilder class builds an instance of a BerkeleyDBBinaryStoreManager.
Since:
Coherence 12.1.2
Author:
pfm 2011.11.30
  • Constructor Details

    • BdbStoreManagerBuilder

      public BdbStoreManagerBuilder()
  • Method Details

    • realize

      public BerkeleyDBBinaryStoreManager realize(ParameterResolver resolver, 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
      Returns:
      a BinaryStoreManager
    • getDirectory

      public String getDirectory(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(Expression<String> expr)
      Set the BDB root directory where BDB stores files.
      Parameters:
      expr - the directory name
    • getStoreName

      public String getStoreName(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(Expression<String> expr)
      Set the BDB store (database table) name.
      Parameters:
      expr - the store name
    • getXmlInitParams

      public String getXmlInitParams(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(Expression<String> expr)
      Set the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.
      Parameters:
      expr - the XML init params
      See Also:
      • for je.* properties that can be configured.
    • getInitParams

      public ResolvableParameterList getInitParams()
      Return the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.
      Returns:
      the init params
    • setInitParams

      @Injectable("init-params") public void setInitParams(ResolvableParameterList listInitParams)
      Set the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.
      Parameters:
      listInitParams - list of resolvable init-params
      See Also:
      • for je.* properties that can be configured.