Class BdbStoreManagerBuilder
java.lang.Object
com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder<BerkeleyDBBinaryStoreManager>
com.tangosol.coherence.config.builder.storemanager.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDirectory
(ParameterResolver resolver) Return the path name for the root directory that the BDB file manager uses to store files in.Return the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.getStoreName
(ParameterResolver resolver) Specifies the name for a database table that the Berkeley Database JE store manager uses to store data in.getXmlInitParams
(ParameterResolver resolver) Return the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.realize
(ParameterResolver resolver, ClassLoader loader, boolean fPaged) Realize aBinaryStoreManager
given the provided parameters.void
setDirectory
(Expression<String> expr) Set the BDB root directory where BDB stores files.void
setInitParams
(ResolvableParameterList listInitParams) Set the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.void
setStoreName
(Expression<String> expr) Set the BDB store (database table) name.void
setXmlInitParams
(Expression<String> 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 Details
-
BdbStoreManagerBuilder
public BdbStoreManagerBuilder()
-
-
Method Details
-
realize
public BerkeleyDBBinaryStoreManager realize(ParameterResolver resolver, ClassLoader loader, boolean fPaged) Realize aBinaryStoreManager
given the provided parameters.- Parameters:
resolver
- theParameterResolver
for resolving expressions and runtime parametersloader
- theClassLoader
for loading classes (if necessary)fPaged
- the flag indicating whether the map is paged- Returns:
- a
BinaryStoreManager
-
getDirectory
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
Set the BDB root directory where BDB stores files.- Parameters:
expr
- the directory name
-
getStoreName
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
Set the BDB store (database table) name.- Parameters:
expr
- the store name
-
getXmlInitParams
Return the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.- Parameters:
resolver
- the ParameterResolver- Returns:
- the init params
-
setXmlInitParams
Set the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.- Parameters:
expr
- the XML init params- See Also:
-
getInitParams
Return the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.- Returns:
- the init params
-
setInitParams
Set the BDB init params needed to construct a BerkeleyDBBinaryStoreManager.- Parameters:
listInitParams
- list of resolvable init-params- See Also:
-