Package com.tangosol.io.bdb
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected Map
m_mapFactories
Map of DatabaseFactory objects keyed by XmlElement configuration.
-
Constructor Summary
Constructors Constructor Description DatabaseFactoryManager()
Construct a new DatabaseFactoryManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
-
-
-
Field Detail
-
m_mapFactories
protected Map m_mapFactories
Map of DatabaseFactory objects keyed by XmlElement configuration.
-
-
Method Detail
-
toString
public String toString()
Return 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
-
-