| Package | Description |
|---|---|
| com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
| com.sleepycat.je.cleaner |
INTERNAL: disk garbage collection.
|
| com.sleepycat.je.dbi |
INTERNAL: Underlying XxxImpl classes for Environment, Database and Cursor,
plus other misc classes (originally, dbi meant "db internal interface").
|
| com.sleepycat.je.evictor |
INTERNAL: Evicts data from the main and off-heap caches when they overflow.
|
| com.sleepycat.je.incomp |
INTERNAL: IN compressor performs background deletion of defunct IN slots
and deletes empty INs.
|
| com.sleepycat.je.latch |
INTERNAL: Latches wrap Java ReentrantLock and ReentrantReadWriteLock and
add restrictions and debugging support; used mainly for IN locking.
|
| com.sleepycat.je.log |
INTERNAL: Low level data storage including log entry sequential
logging/writing, random reading/fetching, and sequential reading.
|
| com.sleepycat.je.log.entry |
INTERNAL: Classes for serializing/materializing log entries.
|
| com.sleepycat.je.recovery |
INTERNAL: Performs recovery/startup processing during Environment open, and
checkpoints to bound recovery time.
|
| com.sleepycat.je.rep |
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
environments.
|
| com.sleepycat.je.rep.elections |
INTERNAL: Elections of the master node among the nodes in a group.
|
| com.sleepycat.je.rep.impl |
INTERNAL: Top level HA implementation classes.
|
| com.sleepycat.je.rep.impl.networkRestore |
INTERNAL: Protocol for
network restore. |
| com.sleepycat.je.rep.stream |
INTERNAL: Feeding and syncup (init) of rep stream from master node to
other node types (replicas, etc).
|
| com.sleepycat.je.rep.txn |
INTERNAL: HA Txn/Locker subclasses for enforcing consistency and durability
constraints.
|
| com.sleepycat.je.rep.util.ldiff |
INTERNAL: LDiff debugging utility for comparing databases on different
nodes in a group.
|
| com.sleepycat.je.rep.utilint |
INTERNAL: Command line and programmatic utilities.
|
| com.sleepycat.je.rep.utilint.net |
INTERNAL: Network utility classes.
|
| com.sleepycat.je.rep.vlsn |
INTERNAL: VLSN index (in-memory and persistent) for mapping VLSNs to LSNs.
|
| com.sleepycat.je.statcap |
INTERNAL: Statistics capture and output to je.stat.csv file.
|
| com.sleepycat.je.tree |
INTERNAL: Btree data structure (the JE main cache), including persistent
nodes classes, and Btree access methods.
|
| com.sleepycat.je.tree.dupConvert |
INTERNAL: Defunct Btree classes for old duplicate Btrees, only used during
recovery.
|
| com.sleepycat.je.txn |
INTERNAL: Transaction management and locking (concurrency control).
|
| com.sleepycat.je.util |
Supporting utilities.
|
| com.sleepycat.je.util.verify |
INTERNAL: Scheduled data verifier and Btree verification.
|
| com.sleepycat.je.utilint |
INTERNAL: Misc utility classes, including some stat classes.
|
| Modifier and Type | Method and Description |
|---|---|
static EnvironmentImpl |
DbInternal.checkOpen(Environment env)
Proxy to Environment.checkOpen
|
static EnvironmentImpl |
DbInternal.getEnvironmentImpl(Environment env)
Proxy to Environment.getMaybeNullEnvImpl.
|
static EnvironmentImpl |
DbInternal.getNonNullEnvImpl(Environment env)
Proxy to Environment.getNonNullEnvImpl
This method is called to access the underlying EnvironmentImpl when an
env is expected to be open, to guard against NPE when the env has been
closed.
|
protected EnvironmentImpl |
Environment.makeEnvironmentImpl(File envHome,
EnvironmentConfig envConfig,
RepConfigProxy repConfigProxy) |
| Modifier and Type | Method and Description |
|---|---|
void |
ReplicaConsistencyPolicy.ensureConsistency(EnvironmentImpl repInstance) |
Durability |
TransactionConfig.getDurabilityFromSync(EnvironmentImpl envImpl) |
static EnvironmentFailureException |
EnvironmentFailureException.promote(EnvironmentImpl envImpl,
EnvironmentFailureReason reason,
String message,
Throwable cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedException(EnvironmentImpl envImpl,
Exception cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedException(EnvironmentImpl envImpl,
String message,
Exception cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedState(EnvironmentImpl envImpl)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedState(EnvironmentImpl envImpl,
String message)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
EnvironmentImpl |
BaseUtilizationTracker.getEnvironment() |
EnvironmentImpl |
UtilizationTracker.getEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
static void |
VerifyUtils.verifyUtilization(EnvironmentImpl envImpl,
boolean expectAccurateObsoleteLNCount,
boolean expectAccurateObsoleteLNSize)
Compare utilization as calculated by UtilizationProfile to utilization
as calculated by UtilizationFileReader.
|
| Constructor and Description |
|---|
Cleaner(EnvironmentImpl env,
String name) |
DataEraser(EnvironmentImpl envImpl) |
ExpirationProfile(EnvironmentImpl env) |
ExtinctionScanner(@NonNull EnvironmentImpl envImpl) |
LocalUtilizationTracker(EnvironmentImpl env) |
RecoveryUtilizationTracker(EnvironmentImpl env) |
UtilizationProfile(EnvironmentImpl env,
UtilizationTracker tracker)
Creates an empty UP.
|
| Modifier and Type | Field and Description |
|---|---|
EnvironmentImpl |
NodeSequence.envImpl |
protected EnvironmentImpl |
SortedLSNTreeWalker.envImpl |
| Modifier and Type | Method and Description |
|---|---|
EnvironmentImpl |
DatabaseImpl.getEnv() |
EnvironmentImpl |
DbEnvPool.getEnvironment(File envHome,
EnvironmentConfig config,
boolean checkImmutableParams,
RepConfigProxy repConfigProxy)
Find a single environment, used by Environment handles and by command
line utilities.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<EnvironmentImpl> |
DbEnvPool.getEnvImpls() |
| Modifier and Type | Method and Description |
|---|---|
LN |
DbType.createDeletedLN(EnvironmentImpl envImpl)
Creates a deleted LN for use in an optimization in CursorImpl.delete.
|
LN |
DbType.createUpdatedLN(EnvironmentImpl envImpl,
byte[] newData)
Creates an updated LN for use in an optimization in
CursorImpl.putCurrentAlreadyLatchedAndLocked.
|
static void |
DbCleanup.execute(EnvironmentImpl envImpl,
DbCleanup[] cleanupArray,
boolean isCommit)
Perform and complete the cleanup task _after_ the txn's write locks
have been released.
|
DatabaseConfig |
ReplicatedDatabaseConfig.getReplicaConfig(EnvironmentImpl envImpl)
Create a database config for use on the replica which contains
all the configuration options that were conveyed by way of this class.
|
void |
DatabaseImpl.setConfigProperties(Locker locker,
String dbName,
DatabaseConfig dbConfig,
EnvironmentImpl envImpl) |
void |
DatabaseImpl.setEnvironmentImpl(EnvironmentImpl envImpl)
Set the db environment after reading in the DatabaseImpl from the log.
|
static void |
DbCleanup.setStateAndExecute(EnvironmentImpl envImpl,
DbCleanup cleanup)
Process cleanup task when a non-transactional DB operation is complete
(meaning that the NameLN was logged).
|
| Modifier and Type | Method and Description |
|---|---|
void |
DbEnvPool.setBeforeFinishInitHook(TestHook<EnvironmentImpl> hook) |
| Constructor and Description |
|---|
BackupManager(EnvironmentImpl envImpl)
Creates an instance of this class for the specified environment.
|
DatabaseImpl(Locker locker,
String dbName,
DatabaseId id,
EnvironmentImpl envImpl,
DatabaseConfig dbConfig)
Create a database object for a new database.
|
DbTree(EnvironmentImpl env,
boolean replicationIntended,
boolean preserveVLSN)
Create a new dbTree for a new environment.
|
EnvironmentImpl(File envHome,
EnvironmentConfig envConfig,
EnvironmentImpl sharedCacheEnv) |
EnvironmentImpl(File envHome,
EnvironmentConfig envConfig,
EnvironmentImpl sharedCacheEnv,
RepConfigProxy repConfigProxy)
Create a database environment to represent the data in envHome.
|
NodeSequence(EnvironmentImpl envImpl) |
StartupTracker(EnvironmentImpl envImpl) |
| Modifier and Type | Method and Description |
|---|---|
void |
Evictor.addEnvironment(EnvironmentImpl env) |
boolean |
Evictor.checkEnv(EnvironmentImpl env) |
long |
OffHeapCache.clearCache(EnvironmentImpl matchEnv) |
void |
OffHeapCache.evictBINIfLsnMatch(EnvironmentImpl envImpl,
int entry,
long lsn) |
OffHeapCache.BINInfo |
OffHeapCache.getBINInfo(EnvironmentImpl envImpl,
int entry) |
BIN |
OffHeapCache.loadBIN(EnvironmentImpl envImpl,
int entry) |
BIN |
OffHeapCache.loadBINIfLsnMatches(EnvironmentImpl envImpl,
int entry,
long lsn)
Loads a BIN for the given entry, if its last logged LSN is the given
LSN.
|
BIN |
OffHeapCache.materializeBIN(EnvironmentImpl envImpl,
byte[] buf) |
void |
Evictor.removeSharedCacheEnv(EnvironmentImpl env) |
| Constructor and Description |
|---|
Evictor(EnvironmentImpl envImpl) |
OffHeapCache(EnvironmentImpl envImpl) |
| Constructor and Description |
|---|
INCompressor(EnvironmentImpl env,
long waitTime,
String name) |
| Modifier and Type | Method and Description |
|---|---|
EnvironmentImpl |
LatchContext.getEnvImplForFatalException()
Returns envImpl, or may throw another exception in unit tests.
|
| Modifier and Type | Method and Description |
|---|---|
static Latch |
LatchFactory.createExclusiveLatch(EnvironmentImpl envImpl,
String name,
boolean collectStats)
Creates a Latch, creating a LatchContext from the given name and
envImpl.
|
static SharedLatch |
LatchFactory.createSharedLatch(EnvironmentImpl envImpl,
String name,
boolean exclusiveOnly)
Creates a SharedLatch, creating a LatchContext from the given name and
envImpl.
|
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentImpl |
FileReader.envImpl |
protected EnvironmentImpl |
FileReader.ReadWindow.envImpl |
| Modifier and Type | Method and Description |
|---|---|
static Map<Long,FileSummary> |
UtilizationFileReader.calcFileSummaryMap(EnvironmentImpl envImpl)
Creates a UtilizationReader, reads the log, and returns the resulting
Map of Long file number to FileSummary.
|
static Map<Long,FileSummary> |
UtilizationFileReader.calcFileSummaryMap(EnvironmentImpl envImpl,
long startLsn,
long finishLsn) |
static void |
Trace.trace(EnvironmentImpl envImpl,
String message)
Convenience method to create a log entry containing this trace msg.
|
static long |
Trace.trace(EnvironmentImpl envImpl,
Trace traceMsg)
Trace a trace object, unit tests only.
|
static void |
Trace.traceLazily(EnvironmentImpl envImpl,
String message)
Convenience method to create a log entry (lazily) containing this trace
msg.
|
| Constructor and Description |
|---|
CheckpointFileReader(EnvironmentImpl env,
int readBufferSize,
boolean forward,
long startLsn,
long finishLsn,
long endOfFileLsn)
Create this reader to start at a given LSN.
|
ChecksumValidator(EnvironmentImpl envImpl) |
CleanerFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
Long fileNum,
FileSummary fileSummary,
INSummary inSummary,
ExpirationTracker expTracker)
Create this reader to start at a given LSN.
|
DumpFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
long finishLsn,
long endOfFileLsn,
String entryTypes,
String dbIds,
String txnIds,
boolean verbose,
boolean repEntriesOnly,
boolean forwards)
Create this reader to start at a given LSN.
|
FileManager(EnvironmentImpl envImpl,
File dbEnvHome,
boolean readOnly)
Set up the file cache and initialize the file manager to point to the
beginning of the log.
|
FileReader(EnvironmentImpl envImpl,
int readBufferSize,
boolean forward,
long startLsn,
Long singleFileNumber,
long endOfFileLsn,
long finishLsn) |
FileReader(EnvironmentImpl envImpl,
int readBufferSize,
boolean forward,
long startLsn,
Long singleFileNumber,
long endOfFileLsn,
long finishLsn,
boolean doChecksumOnRead) |
INFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
long finishLsn,
boolean trackIds,
long partialCkptStart,
long ckptEnd,
RecoveryUtilizationTracker tracker)
Create this reader to start at a given LSN.
|
INFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
long finishLsn,
boolean trackIds,
long partialCkptStart,
long ckptEnd,
RecoveryUtilizationTracker tracker,
Set<DatabaseId> logVersion8UpgradeDbs,
AtomicBoolean logVersion8UpgradeDeltas)
Create with logVersion8UpgradeDbs and logVersion8UpgradeDeltas params.
|
LastFileReader(EnvironmentImpl envImpl,
int readBufferSize)
This file reader is always positioned at the last file.
|
LNFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
boolean redo,
long endOfFileLsn,
long finishLsn,
Long singleFileNum,
long ckptEnd)
Create this reader to start at a given LSN.
|
LogFlusher(EnvironmentImpl envImpl) |
LogManager(EnvironmentImpl envImpl,
boolean readOnly)
There is a single log manager per database environment.
|
PrintFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
long finishLsn,
long endOfFileLsn,
String entryTypes,
String dbIds,
String txnIds,
boolean verbose,
boolean repEntriesOnly,
boolean forwards)
Create this reader to start at a given LSN.
|
ReadWindow(int readBufferSize,
EnvironmentImpl envImpl) |
ScavengerFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
long finishLsn,
long endOfFileLsn)
Create this reader to start at a given LSN.
|
SearchFileReader(EnvironmentImpl env,
int readBufferSize,
boolean forward,
long startLsn,
long endOfFileLsn,
LogEntryType targetType)
Create this reader to start at a given LSN.
|
StatsFileReader(EnvironmentImpl envImpl,
int readBufferSize,
long startLsn,
long finishLsn,
long endOfFileLsn,
String entryTypes,
String dbIds,
String txnIds,
boolean verbose,
boolean repEntriesOnly,
boolean forwards)
Create this reader to start at a given LSN.
|
VLSNDistributionReader(EnvironmentImpl envImpl,
int readBufferSize,
long startLsn,
long finishLsn,
long endOfFileLsn,
boolean verbose,
boolean forwards)
Create this reader to start at a given LSN.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SingleItemEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer) |
void |
NameLNLogEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
Extends its super class to read in database operation information.
|
void |
LNLogEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer) |
void |
FileHeaderEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
For a file header, the version is not available until after reading the
item.
|
void |
INLogEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer) |
void |
LogEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
Read in a log entry.
|
void |
DeletedDupLNLogEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
Extends its super class to read in the extra dup key.
|
void |
ErasedLogEntry.readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer) |
| Modifier and Type | Method and Description |
|---|---|
static void |
RollbackTracker.makeInvisible(EnvironmentImpl targetEnvImpl,
List<Long> rollbackLsns) |
void |
Checkpointer.syncDatabase(EnvironmentImpl envImpl,
DatabaseImpl dbImpl,
boolean flushLog)
Flush a given database to disk.
|
| Constructor and Description |
|---|
Checkpointer(EnvironmentImpl envImpl,
long waitTime,
String name) |
RecoveryManager(EnvironmentImpl env)
Make a recovery manager
|
| Modifier and Type | Method and Description |
|---|---|
void |
CommitPointConsistencyPolicy.ensureConsistency(EnvironmentImpl envImpl) |
void |
NoConsistencyRequiredPolicy.ensureConsistency(EnvironmentImpl repInstance) |
void |
TimeConsistencyPolicy.ensureConsistency(EnvironmentImpl replicatorImpl) |
| Constructor and Description |
|---|
MasterReplicaTransitionException(EnvironmentImpl envImpl,
Exception cause)
Deprecated.
|
RestartRequiredException(EnvironmentImpl envImpl,
EnvironmentFailureReason reason) |
RestartRequiredException(EnvironmentImpl envImpl,
EnvironmentFailureReason reason,
Exception cause) |
RestartRequiredException(EnvironmentImpl envImpl,
EnvironmentFailureReason reason,
String msg) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utils.cleanup(Logger logger,
EnvironmentImpl envImpl,
Formatter formatter,
DataChannel channel,
BufferedReader in,
PrintWriter out)
Cleans up the socket and its related streams after a request/response
cycle.
|
| Constructor and Description |
|---|
ElectionAgentThread(EnvironmentImpl envImpl,
Protocol protocol,
String threadName) |
| Modifier and Type | Class and Description |
|---|---|
class |
RepImpl |
| Modifier and Type | Method and Description |
|---|---|
void |
PointConsistencyPolicy.ensureConsistency(EnvironmentImpl replicatorImpl)
Ensures that the replica has replayed the replication stream to the
point identified by the commit token.
|
| Constructor and Description |
|---|
RepImpl(File envHome,
EnvironmentConfig envConfig,
EnvironmentImpl sharedCacheEnv,
RepConfigProxy repConfigProxy) |
| Constructor and Description |
|---|
FeederManager(ServiceDispatcher serviceDispatcher,
EnvironmentImpl envImpl,
NameIdPair nameIdPair)
Creates a FeederManager but does not start it.
|
Protocol(NameIdPair nameIdPair,
int configuredVersion,
EnvironmentImpl envImpl) |
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentImpl |
OutputWireRecord.envImpl |
| Modifier and Type | Method and Description |
|---|---|
void |
ArbiterFeederSource.shutdown(EnvironmentImpl envImpl) |
void |
FeederSource.shutdown(EnvironmentImpl envImpl) |
void |
MasterFeederSource.shutdown(EnvironmentImpl envImpl)
Must be called to allow deletion of files protected by this feeder.
|
| Constructor and Description |
|---|
ArbiterFeederSource(EnvironmentImpl envImpl) |
FeederSyncupReader(EnvironmentImpl envImpl,
VLSNIndex vlsnIndex,
long endOfLogLsn,
int readBufferSize,
VLSN startVLSN,
long finishLsn) |
MatchpointSearchResults(EnvironmentImpl envImpl) |
ReplicaSyncupReader(EnvironmentImpl envImpl,
VLSNIndex vlsnIndex,
long endOfLogLsn,
int readBufferSize,
VLSN startVLSN,
long finishLsn,
MatchpointSearchResults searchResults) |
| Modifier and Type | Method and Description |
|---|---|
static MasterTxn |
MasterTxn.create(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
MasterTxn |
MasterTxn.MasterTxnFactory.create(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
static MasterTxn |
MasterTxn.createNullTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
MasterTxn |
MasterTxn.MasterTxnFactory.createNullTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair)
Create a special "null" txn that does not result in any changes to
the environment.
|
| Constructor and Description |
|---|
MasterTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
ReadonlyTxn(EnvironmentImpl envImpl,
TransactionConfig config) |
ReplayTxn(EnvironmentImpl envImpl,
TransactionConfig config,
long txnId,
Logger logger)
Used when creating ReplayTxns at recovery.
|
ReplayTxn(EnvironmentImpl envImpl,
TransactionConfig config,
long txnId,
SimpleTxnMap<ReplayTxn> activeTxns,
Logger logger)
Used when creating ReplayTxns for Replay.
|
| Constructor and Description |
|---|
Protocol(NameIdPair nameIdPair,
EnvironmentImpl envImpl) |
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentImpl |
BinaryProtocol.envImpl |
| Constructor and Description |
|---|
BinaryProtocol(NameIdPair nameIdPair,
int codeVersion,
int configuredVersion,
EnvironmentImpl envImpl)
Returns a Protocol object configured that implements the specified
(supported) version.
|
ExceptionAwareBlockingQueue(EnvironmentImpl envImpl,
T dummyValue) |
ExceptionAwareCountDownLatch(EnvironmentImpl envImpl,
int count) |
SizeAwaitMap(EnvironmentImpl envImpl,
SizeAwaitMap.Predicate<V> predicate)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
static LoggerFactory |
DataChannelFactoryBuilder.makeLoggerFactory(EnvironmentImpl envImpl)
Creates a logger factory based on an EnvironmentImpl
|
| Constructor and Description |
|---|
VLSNIndex(EnvironmentImpl envImpl,
String mappingDbName,
NameIdPair nameIdPair,
int vlsnStride,
int vlsnMaxMappings,
int vlsnMaxDistance,
RecoveryInfo recoveryInfo)
The mapping db's name is passed in as a parameter instead of the more
intuitive approach of defining it within the class to facilitate unit
testing of the VLSNIndex.
|
VLSNRecoveryTracker(EnvironmentImpl envImpl,
int stride,
int maxMappings,
int maxDistance) |
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentImpl |
StatManager.env |
| Constructor and Description |
|---|
EnvStatsLogger(EnvironmentImpl env) |
StatCapture(EnvironmentImpl environment,
String name,
long waitTime,
CustomStats customStats,
SortedSet<String> statProjection,
StatManager statMgr) |
StatManager(EnvironmentImpl env) |
| Modifier and Type | Method and Description |
|---|---|
EnvironmentImpl |
IN.getEnv() |
EnvironmentImpl |
IN.getEnvImplForFatalException() |
| Modifier and Type | Method and Description |
|---|---|
LogItem |
LN.log(EnvironmentImpl envImpl,
DatabaseImpl dbImpl,
Locker locker,
WriteLockInfo writeLockInfo,
boolean newEmbeddedLN,
byte[] newKey,
int newExpiration,
boolean newExpirationInHours,
boolean currEmbeddedLN,
long currLsn,
int currSize,
boolean isInsertion,
boolean backgroundIO,
ReplicationContext repContext)
Convenience logging method, used to migrate an LN during cleaning.
|
static LN |
LN.makeLN(EnvironmentImpl envImpl,
byte[] dataParam)
Create a new LN from a byte array.
|
static LN |
LN.makeLN(EnvironmentImpl envImpl,
DatabaseEntry dbt)
Create a new LN from a DatabaseEntry.
|
LogItem |
LN.optionalLog(EnvironmentImpl envImpl,
DatabaseImpl dbImpl,
Locker locker,
WriteLockInfo writeLockInfo,
boolean newEmbeddedLN,
byte[] newKey,
int newExpiration,
boolean newExpirationInHours,
boolean currEmbeddedLN,
long currLsn,
int currSize,
boolean isInsertion,
ReplicationContext repContext)
Convenience logging method.
|
| Constructor and Description |
|---|
DupConvert(EnvironmentImpl envImpl,
DbTree dbTree)
Creates a conversion object.
|
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentImpl |
Locker.envImpl |
| Modifier and Type | Method and Description |
|---|---|
EnvironmentImpl |
Locker.getEnvironment() |
EnvironmentImpl |
Txn.getEnvironmentImpl() |
| Modifier and Type | Method and Description |
|---|---|
static UndoReader |
UndoReader.create(EnvironmentImpl envImpl,
long undoLsn,
Map<DatabaseId,DatabaseImpl> undoDatabases)
Set up an UndoReader when doing an undo or txn partial rollback for a
live txn.
|
static Txn |
Txn.createAutoTxn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext) |
static BasicLocker |
BasicLocker.createBasicLocker(EnvironmentImpl env) |
static BasicLocker |
BasicLocker.createBasicLocker(EnvironmentImpl env,
boolean noWait) |
static BuddyLocker |
BuddyLocker.createBuddyLocker(EnvironmentImpl env,
Locker buddy) |
static HandleLocker |
HandleLocker.createHandleLocker(EnvironmentImpl env,
Locker buddy) |
static Txn |
Txn.createLocalAutoTxn(EnvironmentImpl envImpl,
TransactionConfig config) |
static Txn |
Txn.createLocalTxn(EnvironmentImpl envImpl,
TransactionConfig config) |
static PreparedTxn |
PreparedTxn.createPreparedTxn(EnvironmentImpl envImpl,
TransactionConfig config,
long mandatedId) |
static ReadCommittedLocker |
ReadCommittedLocker.createReadCommittedLocker(EnvironmentImpl env,
Locker buddy) |
static ThreadLocker |
ThreadLocker.createThreadLocker(EnvironmentImpl env,
boolean replicated) |
static Locker |
LockerFactory.getInternalReadOperationLocker(EnvironmentImpl envImpl)
Get a non-transactional locker for internal database operations.
|
| Constructor and Description |
|---|
BasicLocker(EnvironmentImpl env)
Creates a BasicLocker.
|
BasicLocker(EnvironmentImpl env,
boolean noWait)
Creates a BasicLocker with a noWait argument.
|
BuddyLocker(EnvironmentImpl env,
Locker buddy)
Creates a BuddyLocker.
|
HandleLocker(EnvironmentImpl env,
Locker buddy)
Creates a HandleLocker.
|
Locker(EnvironmentImpl envImpl,
boolean readUncommittedDefault,
boolean noWait,
long mandatedId)
Create a locker id.
|
LockManager(EnvironmentImpl envImpl) |
ThreadLocker(EnvironmentImpl env)
Creates a ThreadLocker.
|
Txn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext) |
Txn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext,
long mandatedId)
A non-zero mandatedId is specified only by subtypes which arbitrarily
impose a transaction id value onto the transaction.
|
TxnChain(long lastLoggedLsn,
long txnId,
long matchpoint,
EnvironmentImpl envImpl) |
TxnChain(long lastLoggedLsn,
long txnId,
long matchpoint,
Map<DatabaseId,DatabaseImpl> undoDatabases,
EnvironmentImpl envImpl) |
TxnManager(EnvironmentImpl envImpl) |
| Constructor and Description |
|---|
ConsoleHandler(Formatter formatter,
EnvironmentImpl envImpl) |
DbBackup(EnvironmentImpl envImpl) |
DbSpace(EnvironmentImpl envImpl,
boolean quiet,
boolean details,
boolean sorted)
For internal use only.
|
DbVerifyLog(EnvironmentImpl envImpl,
int readBufferSize) |
FileHandler(String pattern,
int limit,
int count,
Formatter formatter,
EnvironmentImpl envImpl) |
LogVerificationReadableByteChannel(EnvironmentImpl envImpl,
ReadableByteChannel channel,
String fileName)
Creates a verification input stream.
|
| Modifier and Type | Method and Description |
|---|---|
static EnvironmentFailureException |
VerifierUtils.createMarkerFileFromException(RestoreRequired.FailureType failureType,
Throwable origException,
EnvironmentImpl envImpl,
EnvironmentFailureReason reason)
Create the restore marker file from Exception origException and return
an EFE that can be thrown by the caller.
|
| Constructor and Description |
|---|
BtreeVerifier(EnvironmentImpl envImpl)
Creates a BtreeVerifier object for Btree verification.
|
DataVerifier(EnvironmentImpl envImpl) |
ReservedFilesAutoRepair(EnvironmentImpl envImpl) |
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentImpl |
StoppableThread.envImpl |
protected EnvironmentImpl |
DaemonThread.envImpl |
| Modifier and Type | Method and Description |
|---|---|
static EnvironmentImpl |
CmdUtil.makeUtilityEnvironment(File envHome,
boolean readOnly)
Create an environment suitable for utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
LoggerUtils.envLogMsg(Level logLevel,
EnvironmentImpl envImpl,
String msg)
Use the environment logger.
|
static void |
LoggerUtils.fine(Logger useLogger,
EnvironmentImpl envImpl,
String msg) |
static void |
LoggerUtils.finer(Logger useLogger,
EnvironmentImpl envImpl,
String msg) |
static void |
LoggerUtils.finest(Logger useLogger,
EnvironmentImpl envImpl,
String msg) |
static void |
LoggerUtils.fullThreadDump(Logger logger,
EnvironmentImpl envImpl,
Level level)
Logs a full thread dump as if jstack were piped to the je.info file.
|
static Logger |
LoggerUtils.getLoggerFixedPrefix(Class<?> cl,
String prefix,
EnvironmentImpl envImpl)
Get a logger that uses the generic console handler, with no attempt to
use thread local state to customize the message prefix.
|
static void |
StoppableThread.handleUncaughtException(Logger useLogger,
EnvironmentImpl envImpl,
Thread t,
Throwable e) |
static void |
LoggerUtils.info(Logger useLogger,
EnvironmentImpl envImpl,
String msg) |
static void |
LoggerUtils.logMsg(Logger useLogger,
EnvironmentImpl envImpl,
Formatter formatter,
Level logLevel,
String msg)
Log a message using this logger.
|
static void |
LoggerUtils.logMsg(Logger useLogger,
EnvironmentImpl envImpl,
Level logLevel,
String msg)
Log a message using this logger.
|
static <T> void |
LoggerUtils.logMsg(RateLimitingLogger<T> useLogger,
EnvironmentImpl envImpl,
T object,
Level logLevel,
String msg)
Log a message using the given RateLimitingLogger.
|
static void |
LoggerUtils.severe(Logger useLogger,
EnvironmentImpl envImpl,
String msg) |
static void |
LoggerUtils.traceAndLog(Logger logger,
EnvironmentImpl envImpl,
Level logLevel,
String msg)
Records a message both to the java.util.logging loggers and through
the trace system which writes to the .jdb files.
|
static void |
LoggerUtils.traceAndLogException(EnvironmentImpl envImpl,
String sourceClass,
String sourceMethod,
String msg,
Throwable t)
Logger method for recording an exception and stacktrace to both the
java.util.logging system and the .jdb files.
|
static void |
LoggerUtils.warning(Logger useLogger,
EnvironmentImpl envImpl,
String msg) |
| Constructor and Description |
|---|
DaemonThread(long waitTime,
String name,
EnvironmentImpl envImpl) |
LogVerifier(EnvironmentImpl envImpl,
String fileName)
Creates a log verifier.
|
LogVerifier(EnvironmentImpl envImpl,
String fileName,
long fileNum)
Creates a log verifier for use with an internal environment.
|
StoppableThread(EnvironmentImpl envImpl,
String threadName) |
StoppableThread(EnvironmentImpl envImpl,
Thread.UncaughtExceptionHandler handler,
Runnable runnable,
String threadName) |
StoppableThread(EnvironmentImpl envImpl,
Thread.UncaughtExceptionHandler handler,
String threadName) |
StoppableThreadFactory(EnvironmentImpl envImpl,
String threadName,
Logger logger)
This kind of StoppableThreadFactory will cause invalidation if an
unhandled exception occurs.
|
Copyright © 2024. All rights reserved.