|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.io.bdb.BerkeleyDBBinaryStoreManager
public class BerkeleyDBBinaryStoreManager
An implementation of the BinaryStoreManager interface using Sleepycat Berkeley DB Java Edition.
The usage pattern for BinaryStoreManagers is simply to instantiate them, use them to allocate a single BinaryStore instance, and forget about them. This implementation maintains knowledge of previously created Berkeley DB Environments via a static DatabaseFactoryManager, thus ensuring a minimum number of Environemnts are created, regardless of the life-cycle of the BinaryStoreManager.| Field Summary | |
|---|---|
protected java.io.File |
m_dirParentParent directory for creating Environments. |
protected boolean |
m_fTemporaryFlag indicating if this store manages temporary data. |
protected java.lang.String |
m_sDbNameDatabase name, used for persistent stores. |
protected XmlElement |
m_xmlConfigStored configuration for this Manager. |
| Constructor Summary | |
|---|---|
BerkeleyDBBinaryStoreManager()Default constructor. |
|
BerkeleyDBBinaryStoreManager(java.io.File dirParent, java.lang.String sDbName)Construct a Berkeley DB BinaryStoreManager for the specified directory. |
|
| Method Summary | |
|---|---|
BinaryStore |
createBinaryStore()Return a new BinaryStore. |
void |
destroyBinaryStore(BinaryStore store)Destroy a BinaryStore previously created by this manager. |
boolean |
equals(java.lang.Object that)Compares two BerkeleyDBBinaryStoreManagers for equality. |
XmlElement |
getConfig()Retrieve the manager's configuration. |
static DatabaseFactoryManager |
getFactoryManager()Get the DatabaseFactoryManager. |
java.io.File |
getParentDirectory()Get the configured parent directory. |
int |
hashCode()Computes the hash code of the BerkeleyDBBinaryStoreManager. |
boolean |
isTemporary()Return true if this is a manager for temporary stores. |
void |
setConfig(XmlElement xmlConfig)Specify the manager's configuration. |
java.lang.String |
toString()Return a human readable description of the BinaryStoreManager. |
| Field Detail |
|---|
protected XmlElement m_xmlConfig
protected java.io.File m_dirParent
protected java.lang.String m_sDbName
protected boolean m_fTemporary
| Constructor Detail |
|---|
public BerkeleyDBBinaryStoreManager()
setConfig(com.tangosol.run.xml.XmlElement)
public BerkeleyDBBinaryStoreManager(java.io.File dirParent,
java.lang.String sDbName)
dirParent - the parent directory for the EnvironmentsDbName - the name of the database to store the cache's data within. This value is only specified when using a persistent store.setConfig(com.tangosol.run.xml.XmlElement)| Method Detail |
|---|
public java.lang.String toString()
public boolean equals(java.lang.Object that)
that - the object to compare equality againstpublic int hashCode()
public BinaryStore createBinaryStore()
createBinaryStore in interface BinaryStoreManagerpublic void destroyBinaryStore(BinaryStore store)
destroyBinaryStore in interface BinaryStoreManagerstore - a BinaryStore object previously created by this managerpublic XmlElement getConfig()
getConfig in interface XmlConfigurablepublic void setConfig(XmlElement xmlConfig)
setConfig in interface XmlConfigurablexmlConfig - the new configurationpublic static DatabaseFactoryManager getFactoryManager()
public java.io.File getParentDirectory()
public boolean isTemporary()
|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||