Class DatabaseFactoryManager

java.lang.Object
com.tangosol.util.Base
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 Details

    • m_mapFactories

      protected Map m_mapFactories
      Map of DatabaseFactory objects keyed by XmlElement configuration.
  • Constructor Details

    • DatabaseFactoryManager

      public DatabaseFactoryManager()
      Construct a new DatabaseFactoryManager.
  • Method Details

    • toString

      public String toString()
      Return a human readable description of the DatabaseFactoryManager.
      Overrides:
      toString in class Object
      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