Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB Java Edition version 4.0.103
PREV NEXT | FRAMES NO FRAMES

## Deprecated API

Contents

- Deprecated Classes
- Deprecated Exceptions
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

Deprecated Classes
com.sleepycat.je.jmx.JEMBeanHelper As of JE 4, JEMBeanHelper is deprecated in favor of the concrete MBeans available by default with a JE environment. These MBeans can be registered and enabled by the environment by setting the following JVM property: JEMonitor: This MBean provides general stats monitoring and access to basic environment level operations. JEMBeanHelper is a utility class for the MBean implementation which wants to add management of a JE environment to its capabilities. MBean implementations can contain a JEMBeanHelper instance to get MBean metadata for JE and to set attributes, get attributes, and invoke operations. com.sleepycat.je.jmx.JEMonitor and the example program jmx.JEApplicationMBean are two MBean implementations which provide support different application use cases. See those classes for examples of how to use JEMBeanHelper.
com.sleepycat.je.LockStats as of 4.0.10, replaced by `Environment.getStats(StatsConfig)`.

Deprecated Exceptions
com.sleepycat.je.DeadlockException temporarily until true deadlock detection is implemented. Presently, {code DeadlockException} is replaced by `LockConflictException` as the common base class for lock conflict exceptions.
com.sleepycat.je.LockNotGrantedException replaced by `LockNotAvailableException`
com.sleepycat.je.RunRecoveryException replaced by `EnvironmentFailureException` and `Environment.isValid()`.

Deprecated Fields
com.sleepycat.je.EnvironmentConfig.COMPRESSOR_PURGE_ROOT as of 3.3.87. Compression of the root node no longer has any benefit and this feature has been removed. This parameter has no effect.
com.sleepycat.je.EnvironmentConfig.LOG_CHUNKED_NIO NIO is no longer used by JE and this parameter has no effect.
com.sleepycat.je.EnvironmentConfig.LOG_DIRECT_NIO NIO is no longer used by JE and this parameter has no effect.
com.sleepycat.je.EnvironmentConfig.LOG_USE_NIO NIO is no longer used by JE and this parameter has no effect.
com.sleepycat.je.EnvironmentConfig.TRACE_CONSOLE in favor of `CONSOLE_LOGGING_LEVEL` As of JE 4.0, use the standard java.util.logging configuration methodologies. To enable console output, set com.sleepycat.je.util.ConsoleHandler.level = <LEVEL> through the java.util.logging configuration file, or through the java.util.logging.LogManager. To set the handler level programmatically, set "com.sleepycat.je.util.ConsoleHandler.level" in the EnvironmentConfig object.
com.sleepycat.je.EnvironmentConfig.TRACE_DB As of JE 4.0, event tracing to the .jdb files has been separated from the java.util.logging mechanism. This parameter has no effect.
com.sleepycat.je.EnvironmentConfig.TRACE_FILE in favor of `FILE_LOGGING_LEVEL` As of JE 4.0, use the standard java.util.logging configuration methodologies. To enable logging output to the je.info files, set com.sleepycat.je.util.FileHandler.level = <LEVEL> through the java.util.logging configuration file, or through the java.util.logging.LogManager. To set the handler level programmatically, set "com.sleepycat.je.util.FileHandler.level" in the EnvironmentConfig object.
com.sleepycat.je.EnvironmentConfig.TRACE_FILE_COUNT As of JE 4.0, use the standard java.util.logging configuration methodologies. To set the FileHandler output file count, set com.sleepycat.je.util.FileHandler.count = <NUMBER> through the java.util.logging configuration file, or through the java.util.logging.LogManager.
com.sleepycat.je.EnvironmentConfig.TRACE_FILE_LIMIT As of JE 4.0, use the standard java.util.logging configuration methodologies. To set the FileHandler output file size, set com.sleepycat.je.util.FileHandler.limit = <NUMBER> through the java.util.logging configuration file, or through the java.util.logging.LogManager.
com.sleepycat.je.EnvironmentConfig.TRACE_LEVEL As of JE 4.0, use the standard java.util.logging configuration methodologies. Set logging levels using class names through the java.util.logging configuration file, or through the java.util.logging.LogManager.
com.sleepycat.je.EnvironmentConfig.TRACE_LEVEL_CLEANER As of JE 4.0, use the standard java.util.logging configuration methodologies. To see cleaner logging, set com.sleepycat.je.cleaner.level = <LEVEL> through the java.util.logging configuration file, or through the java.util.logging.LogManager.
com.sleepycat.je.EnvironmentConfig.TRACE_LEVEL_EVICTOR As of JE 4.0, use the standard java.util.logging configuration methodologies. To see evictor logging, set com.sleepycat.je.evictor.level = <LEVEL> through the java.util.logging configuration file, or through the java.util.logging.LogManager.
com.sleepycat.je.EnvironmentConfig.TRACE_LEVEL_LOCK_MANAGER As of JE 4.0, use the standard java.util.logging configuration methodologies. To see locking logging, set com.sleepycat.je.txn.level = <LEVEL> through the java.util.logging configuration file, or through the java.util.logging.LogManager.
com.sleepycat.je.EnvironmentConfig.TRACE_LEVEL_RECOVERY As of JE 4.0, use the standard java.util.logging configuration methodologies. To see recovery logging, set com.sleepycat.je.recovery.level = <LEVEL> through the java.util.logging configuration file, or through the java.util.logging.LogManager.

Deprecated Methods
com.sleepycat.je.DatabaseConfig.cloneConfig() As of JE 4.0.13, replaced by `DatabaseConfig.clone()`.
com.sleepycat.persist.StoreConfig.cloneConfig() As of JE 4.0.13, replaced by `StoreConfig.clone()`.
com.sleepycat.persist.evolve.EvolveConfig.cloneConfig() As of JE 4.0.13, replaced by `EvolveConfig.clone()`.
com.sleepycat.je.SecondaryCursor.dupSecondary(boolean) As of JE 4.0.13, replaced by `Cursor.dup(boolean)`.
com.sleepycat.je.EnvironmentStats.getCacheDataBytes() Please use `EnvironmentStats.getDataBytes()` to get the amount of cache used for data and use `EnvironmentStats.getAdminBytes()`, `EnvironmentStats.getLockBytes()` and `EnvironmentStats.getBufferBytes()` to get other components of the total cache usage (`EnvironmentStats.getCacheTotalBytes()`).
com.sleepycat.util.RuntimeExceptionWrapper.getDetail() replaced by `Throwable.getCause()`.
com.sleepycat.util.ExceptionWrapper.getDetail() replaced by `ExceptionWrapper.getCause()`.
com.sleepycat.util.IOExceptionWrapper.getDetail() replaced by `getCause()`.
com.sleepycat.je.Environment.getLockStats(StatsConfig) as of 4.0.10, replaced by `Environment.getStats(StatsConfig)`.
com.sleepycat.je.EnvironmentConfig.getLockTimeout() as of 4.0, replaced by `EnvironmentConfig.getLockTimeout(TimeUnit)`.
com.sleepycat.je.util.DbBackup.getLogFilesInBackupSet(long) replaced by `DbBackup.getLogFilesInBackupSet()`; pass lastFileInPrevBackup to the `DbBackup.DbBackup(Environment,long)` constructor.
com.sleepycat.je.TransactionConfig.getNoSync() replaced by `TransactionConfig.getDurability()`
com.sleepycat.je.SecondaryDatabase.getSecondaryConfig() As of JE 4.0.13, replaced by `SecondaryDatabase.getConfig()`.
com.sleepycat.je.EnvironmentMutableConfig.getTxnNoSync() replaced by `EnvironmentMutableConfig.getDurability()`
com.sleepycat.je.EnvironmentConfig.getTxnTimeout() as of 4.0, replaced by `EnvironmentConfig.getTxnTimeout(TimeUnit)`.
com.sleepycat.je.EnvironmentMutableConfig.getTxnWriteNoSync() replaced by `EnvironmentMutableConfig.getDurability()`
com.sleepycat.je.TransactionConfig.getWriteNoSync() replaced by `TransactionConfig.getDurability()`
com.sleepycat.collections.StoredCollection.iterator(boolean) Please use `StoredCollection.storedIterator()` or `StoredCollection.storedIterator(boolean)` instead. Because the iterator returned must be closed, the method name `iterator` is confusing since standard Java iterators do not need to be closed.
com.sleepycat.bind.tuple.TupleBase.newOutput() replaced by `TupleBase.getTupleOutput(E)`
com.sleepycat.bind.tuple.TupleBase.newOutput(byte[]) replaced by `TupleBase.getTupleOutput(E)`
com.sleepycat.je.SecondaryDatabase.openSecondaryCursor(Transaction, CursorConfig) As of JE 4.0.13, replaced by `SecondaryDatabase.openCursor(com.sleepycat.je.Transaction, com.sleepycat.je.CursorConfig)`.
com.sleepycat.je.Database.preload(long) As of JE 2.0.83, replaced by `Database.preload(PreloadConfig)`.
com.sleepycat.je.Database.preload(long, long) As of JE 2.0.101, replaced by `Database.preload(PreloadConfig)`.
com.sleepycat.je.EnvironmentConfig.setLockTimeout(long) as of 4.0, replaced by `EnvironmentConfig.setLockTimeout(long, TimeUnit)`.
com.sleepycat.je.Transaction.setLockTimeout(long) as of 4.0, replaced by `Transaction.setLockTimeout(long, TimeUnit)`.
com.sleepycat.je.TransactionConfig.setNoSync(boolean) replaced by `TransactionConfig.setDurability(com.sleepycat.je.Durability)`
com.sleepycat.je.EnvironmentMutableConfig.setTxnNoSync(boolean) replaced by `EnvironmentMutableConfig.setDurability(com.sleepycat.je.Durability)`
com.sleepycat.je.EnvironmentConfig.setTxnTimeout(long) as of 4.0, replaced by `EnvironmentConfig.setTxnTimeout(long, TimeUnit)`.
com.sleepycat.je.Transaction.setTxnTimeout(long) as of 4.0, replaced by `Transaction.setTxnTimeout(long, TimeUnit)`.
com.sleepycat.je.EnvironmentMutableConfig.setTxnWriteNoSync(boolean) replaced by `EnvironmentMutableConfig.setDurability(com.sleepycat.je.Durability)`
com.sleepycat.je.TransactionConfig.setWriteNoSync(boolean) replaced by `TransactionConfig.setDurability(com.sleepycat.je.Durability)`

Deprecated Constructors
com.sleepycat.je.util.DbDump(Environment, String, PrintStream, String, boolean) Please use the 4-arg ctor without outputDirectory instead.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB Java Edition version 4.0.103
PREV NEXT | FRAMES NO FRAMES

Copyright (c) 2004-2010 Oracle. All rights reserved.