|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.outrigger.snaplogstore.PendingTxn
class PendingTxn
This object represents a pending transaction in a BackEnd
.
As operations are performed under the transaction, they are logged into
this object. When the transaction is committed, each operation is
committed into the DB.
Nested Class Summary | |
---|---|
(package private) static class |
PendingTxn.PendingOp
A superclass for the objects that represent pending operations. |
(package private) static class |
PendingTxn.TakeOp
An object that represents a pending take. |
(package private) static class |
PendingTxn.WriteOp
An object that represents a pending write. |
Field Summary | |
---|---|
private long |
id
|
private Hashtable |
ops
|
private int |
state
|
private StoredObject |
transaction
|
Constructor Summary | |
---|---|
PendingTxn(Long id)
Create a new PendingTxn for the given id . |
Method Summary | |
---|---|
(package private) void |
addTake(byte[] cookie)
Add a new pending take operation. |
(package private) void |
addWrite(Resource entry)
Add a new pending write operation. |
(package private) void |
commit(BackEnd processor)
Commit all the operations by invoking the relevant method on the processor object. |
boolean |
equals(Object o)
|
(package private) Resource |
get(ByteArrayWrapper cookie)
Get a pending write resource. |
int |
hashCode()
|
(package private) void |
prepare(StoredObject tr)
Set the Transaction object. |
(package private) boolean |
recover(Recover space)
Recover prepared transactions. |
(package private) Resource |
remove(ByteArrayWrapper cookie)
Remove a pending write. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long id
private int state
private Hashtable ops
private StoredObject transaction
Constructor Detail |
---|
PendingTxn(Long id)
PendingTxn
for the given id
.
Method Detail |
---|
void addWrite(Resource entry)
write
operation.
void addTake(byte[] cookie)
take
operation.
Resource get(ByteArrayWrapper cookie)
Resource remove(ByteArrayWrapper cookie)
boolean recover(Recover space) throws Exception
Exception
void prepare(StoredObject tr)
Transaction
object.
void commit(BackEnd processor)
processor
object.
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |