Used in: external-scheme, paged-external-scheme, async-store-manager.
Configures a store manager which will use a Coherence LH on-disk embedded database for storage. See the persistent disk cache and overflow cache samples for examples of LH based store configurations.
Implemented by the com.tangosol.io.lh.LHBinaryStoreManager class. The BinaryStore objects created by this class are instances of com.tangosol.io.lh.LHBinaryStore.
The following table describes the elements you can define within the lh-file-manager element.
Element | Required/Optional | Description |
---|---|---|
<class-name> | Optional | Specifies a custom implementation of the LH BinaryStoreManager.
Any custom implementation must extend the com.tangosol.io.lh.LHBinaryStoreManager class and declare the exact same set of public constructors. |
<init-params> | Optional | Specifies initialization parameters, for use in custom LH file manager implementations which implement the com.tangosol.run.xml.XmlConfigurable interface. |
<directory> | Optional | Specifies the pathname for the root directory that the LH file manager will use to store files in. If not specified or specifies a non-existent directory, a temporary file in the default location will be used. |
<file-name> | Optional | Specifies the
name for a non-temporary (persistent) file that the LH file manager will
use to store data in. Specifying this parameter will cause the lh-file-manager
to use non-temporary database instances. This is intended only for local
caches that are backed by a cache loader from a non-temporary file, so that
the local cache can be pre-populated from the disk file on startup. When
specified it is recommended that it utilize the {cache-name}
macro. Normally this parameter should be left unspecified, indicating that temporary storage is to be used. |