| 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.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.rep.txn |
INTERNAL: HA Txn/Locker subclasses for enforcing consistency and durability
constraints.
|
| com.sleepycat.je.tree |
INTERNAL: Btree data structure (the JE main cache), including persistent
nodes classes, and Btree access methods.
|
| com.sleepycat.je.txn |
INTERNAL: Transaction management and locking (concurrency control).
|
| Modifier and Type | Method and Description |
|---|---|
static OperationResult |
DbInternal.deleteInternal(Cursor cursor,
ReplicationContext repContext)
Proxy to Cursor.deleteInternal()
|
static OperationResult |
DbInternal.deleteWithRepContext(Cursor cursor,
ReplicationContext repContext)
Proxy to Cursor.deleteWithRepContext()
|
static OperationResult |
DbInternal.putForReplay(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LN ln,
int expiration,
boolean expirationInHours,
PutMode putMode,
ReplicationContext repContext)
Proxy to Cursor.putForReplay()
|
static OperationResult |
DbInternal.putWithRepContext(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
PutMode putMode,
ReplicationContext repContext)
Proxy to Cursor.putWithRepContext()
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExtinctionScanner.prepareForDbExtinction(ReplicationContext repContext)
Must be called before writing a NameLN, when
ExtinctionScanner.startDbExtinction(com.sleepycat.je.dbi.DatabaseImpl)
will be called, i.e., for a DB remove/truncate operation. |
| Modifier and Type | Method and Description |
|---|---|
ReplicationContext |
DatabaseImpl.getRepContext()
Return a ReplicationContext that will indicate if this operation
should broadcast data records for this database as part the replication
stream.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseImpl |
DbTree.createReplicaDb(Locker locker,
String databaseName,
DatabaseConfig dbConfig,
NameLN replicatedLN,
ReplicationContext repContext)
Create a replicated database on this replica node.
|
OperationResult |
CursorImpl.deleteCurrentRecord(ReplicationContext repContext)
Delete the item pointed to by the cursor.
|
OperationResult |
CursorImpl.insertOrUpdateRecord(DatabaseEntry key,
DatabaseEntry data,
LN ln,
ExpirationInfo expInfo,
PutMode putMode,
DatabaseEntry returnOldData,
DatabaseEntry returnNewData,
ReplicationContext repContext)
Insert or update a given record.
|
boolean |
CursorImpl.insertRecord(byte[] key,
LN ln,
boolean blindInsertion,
ReplicationContext repContext)
Insert the given record (key + LN) in the tree or return false if the
key is already present.
|
OperationResult |
CursorImpl.updateCurrentRecord(DatabaseEntry key,
DatabaseEntry data,
ExpirationInfo expInfo,
DatabaseEntry returnOldData,
DatabaseEntry returnNewData,
ReplicationContext repContext)
Modify the current record with the given data, and optionally replace
the key.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DbOpReplicationContext
This subclass of ReplicationContext adds information specific to database
operations to the replication context passed from operation-aware code down
the the logging layer.
|
| Modifier and Type | Field and Description |
|---|---|
static ReplicationContext |
ReplicationContext.MASTER |
static ReplicationContext |
ReplicationContext.NO_REPLICATE |
ReplicationContext |
LogParams.repContext
Whether the logged entry should be replicated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
LogManager.log(LogEntry entry,
ReplicationContext repContext)
Write a log entry.
|
long |
LogManager.logForceFlush(LogEntry entry,
boolean fsyncRequired,
ReplicationContext repContext)
Log this single object and force a write of the log files.
|
| Constructor and Description |
|---|
LogEntryHeader(LogEntry entry,
Provisional provisional,
ReplicationContext repContext)
For writing a log header.
|
| Constructor and Description |
|---|
NameLNLogEntry(LogEntryType entryType,
DatabaseId dbId,
Txn txn,
long abortLsn,
boolean abortKD,
byte[] key,
NameLN nameLN,
int priorSize,
long priorLsn,
ReplicationContext repContext)
Constructor to write this entry.
|
| Modifier and Type | Method and Description |
|---|---|
long |
ReplayTxn.abort(ReplicationContext clientRepContext,
int abortMasterNodeId,
long abortDTVLSN) |
long |
ReplayTxn.commit(Durability.SyncPolicy syncPolicy,
ReplicationContext clientRepContext,
int commitMasterNodeId,
long commitDTVLSN)
Commits the txn being replayed.
|
void |
ReplayTxn.setRepContext(ReplicationContext repContext)
ReplicatedTxns set it when the txn commit
or abort arrives.
|
| 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.
|
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.
|
| Modifier and Type | Field and Description |
|---|---|
protected ReplicationContext |
Txn.repContext |
| Modifier and Type | Method and Description |
|---|---|
static Txn |
Txn.createAutoTxn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext) |
| Constructor and Description |
|---|
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.
|
Copyright © 2024. All rights reserved.