public final class Log
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Log.CommitState |
Modifier and Type | Field and Description |
---|---|
Log.CommitState |
commitState
Indicates the state of commit for the top-level transaction.
|
protected java.util.List<Object._Impl> |
creates
A collection of all objects created in this transaction or completed
sub-transactions.
|
protected WeakReferenceArrayList<Object._Impl> |
localStoreCreates
Tracks objects created on local store.
|
protected WeakReferenceArrayList<Object._Impl> |
localStoreWrites
Tracks objects on local store that have been modified.
|
static Log |
NO_READER |
protected OidKeyHashMap<ReadMap.Entry> |
reads
Maps OIDs to
readMap entries for objects read in this
transaction or completed sub-transactions. |
protected java.util.List<ReadMap.Entry> |
readsReadByParent
Reads on objects that have been read by an ancestor transaction.
|
AbstractSecurityCache |
securityCache |
long |
startTime
The time at which this subtransaction was started.
|
java.util.List<RemoteWorker> |
workersCalled
The set of workers called by this transaction and completed
sub-transactions.
|
protected java.util.List<Object._Impl> |
writes
A collection of all objects modified in this transaction or completed
sub-transactions.
|
Constructor and Description |
---|
Log(TransactionID tid)
Creates a log with the given transaction ID.
|
Modifier and Type | Method and Description |
---|---|
void |
clearWaitsFor()
Empties the waitsFor set.
|
void |
flagRetry()
Sets the retry flag on this and the logs of all sub-transactions.
|
Log |
getChild() |
TransactionID |
getTid() |
java.util.Set<Log> |
getWaitsFor()
Returns a copy of the waitsFor set.
|
boolean |
isReadOnly() |
void |
renumberObject(Store store,
long onum,
long newOnum)
Deprecated.
|
void |
setWaitsFor(Log waitsFor)
Changes the waitsFor set to a singleton set containing the given log.
|
void |
setWaitsFor(java.util.Set<Log> waitsFor)
Changes the waitsFor set to contain exactly the elements of the given set.
|
java.lang.String |
toString() |
public static final Log NO_READER
protected final OidKeyHashMap<ReadMap.Entry> reads
readMap
entries for objects read in this
transaction or completed sub-transactions. Reads from running or aborted
sub-transactions don't count here.protected final java.util.List<ReadMap.Entry> readsReadByParent
protected final java.util.List<Object._Impl> creates
protected final WeakReferenceArrayList<Object._Impl> localStoreCreates
creates
.protected final java.util.List<Object._Impl> writes
protected final WeakReferenceArrayList<Object._Impl> localStoreWrites
writes
.public final java.util.List<RemoteWorker> workersCalled
public final Log.CommitState commitState
public final AbstractSecurityCache securityCache
public final long startTime
public Log(TransactionID tid)
public boolean isReadOnly()
public void flagRetry()
public TransactionID getTid()
public Log getChild()
public void setWaitsFor(Log waitsFor)
public void setWaitsFor(java.util.Set<Log> waitsFor)
public void clearWaitsFor()
public java.util.Set<Log> getWaitsFor()
@Deprecated public void renumberObject(Store store, long onum, long newOnum)
public java.lang.String toString()
toString
in class java.lang.Object