Oracle® Coherence Java API Reference
v3.5

E14977-01

com.tangosol.io.bdb
Class DatabaseFactoryManager

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.io.bdb.DatabaseFactoryManager

public class DatabaseFactoryManager
extends Base

A manager for Berkeley DB Database factories.

The factory manager is used to allocate and find DatabaseFactory objects.

Author:
mf 2005.10.05

Field Summary
protected  java.util.Map m_mapFactories
          Map of DatabaseFactory objects keyed by XmlElement configuration.
 
Constructor Summary
DatabaseFactoryManager()
          Construct a new DatabaseFactoryManager.
 
Method Summary
 DatabaseFactory ensureFactory(BerkeleyDBBinaryStoreManager bdbMgr)
          Find, or if needed create a DatabaseFactory for the specified manager.
 java.util.Map getMapFactories()
          Get the Map of Database factories.
 java.lang.String toString()
          Return a human readable description of the DatabaseFactoryManager.
 

Field Detail

m_mapFactories

protected java.util.Map m_mapFactories
Map of DatabaseFactory objects keyed by XmlElement configuration.

Constructor Detail

DatabaseFactoryManager

public DatabaseFactoryManager()
Construct a new DatabaseFactoryManager.

Method Detail

toString

public java.lang.String toString()
Return a human readable description of the DatabaseFactoryManager.

Returns:
a human readable description of the DatabaseFactoryManager

ensureFactory

public DatabaseFactory ensureFactory(BerkeleyDBBinaryStoreManager bdbMgr)
                              throws com.sleepycat.je.DatabaseException
Find, or if needed create a DatabaseFactory for the specified manager. If a DatabaseFactory has already been created for the specified manager then it will be returned, otherwise a new instance will be created.

Parameters:
bdbMgr - the manager to find the store for
Returns:
DatabaseFactory an instance of a DatabaseFactory
Throws:
com.sleepycat.je.DatabaseException - if the DatabaseFactory cannot be created

getMapFactories

public java.util.Map getMapFactories()
Get the Map of Database factories.

Returns:
the Map of Database factories

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.