Package com.tangosol.io.bdb
Class DatabaseFactoryManager
java.lang.Object
com.tangosol.util.Base
com.tangosol.io.bdb.DatabaseFactoryManager
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
Modifier and TypeFieldDescriptionprotected Map
Map of DatabaseFactory objects keyed by XmlElement configuration. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFind, or if needed create a DatabaseFactory for the specified manager.Get the Map of Database factories.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 Details
-
m_mapFactories
Map of DatabaseFactory objects keyed by XmlElement configuration.
-
-
Constructor Details
-
DatabaseFactoryManager
public DatabaseFactoryManager()Construct a new DatabaseFactoryManager.
-
-
Method Details
-
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
Get the Map of Database factories.- Returns:
- the Map of Database factories
-