CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

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  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.
 Map getMapFactories()
          Get the Map of Database factories.
 String toString()
          Return a human readable description of the DatabaseFactoryManager.
 

Field Detail

m_mapFactories

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

Constructor Detail

DatabaseFactoryManager

public DatabaseFactoryManager()
Construct a new DatabaseFactoryManager.

Method Detail

toString

public 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 Map getMapFactories()
Get the Map of Database factories.

Returns:
the Map of Database factories

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation