|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vishnu.model.transactions.TransactionImpl
public final class TransactionImpl
Constructor Summary | |
---|---|
TransactionImpl(TransactionTerminator c,
UserContext userContext)
|
Method Summary | |
---|---|
void |
abort()
Aborta la transaccion. |
void |
addOperation(Operation o)
|
void |
commit()
Commitea la transaccion |
UserContext |
getUserContext()
|
boolean |
isAborted()
Indica si la transaccion fue abortada. |
boolean |
isCommited()
Indica si la transaccion fue commiteada. |
boolean |
isFinished()
tells whether this transactions has nothing more to do. |
boolean |
isRunning()
tells whether this transactions is doing something or has things to do. |
java.util.List<Operation> |
operationsDone()
returns the sequence of operations that have been already done. |
void |
readExternal(java.io.ObjectInput arg0)
|
java.util.Collection<Shareable> |
resourcesTakenForRead()
returns the resources that are actually in use by the transaction in read mode. |
java.util.Collection<Shareable> |
resourcesTakenForWrite()
returns the resources that are actually in use by the transaction in write mode. |
java.util.Collection<Shareable> |
resourcesWaitingForRead()
returns the resources that are actually waited by the transaction in read mode. |
java.util.Collection<Shareable> |
resourcesWaitingForWrite()
returns the resources that are actually waited by the transaction in write mode. |
void |
writeExternal(java.io.ObjectOutput arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionImpl(TransactionTerminator c, UserContext userContext)
Method Detail |
---|
public void abort()
Transaction
abort
in interface Transaction
public boolean isAborted()
Transaction
isAborted
in interface Transaction
public void commit()
Transaction
commit
in interface Transaction
public boolean isCommited()
Transaction
isCommited
in interface Transaction
public boolean isFinished()
Transaction
isFinished
in interface Transaction
public boolean isRunning()
Transaction
isRunning
in interface Transaction
public java.util.Collection<Shareable> resourcesTakenForRead()
Transaction
resourcesTakenForRead
in interface Transaction
public java.util.Collection<Shareable> resourcesWaitingForRead()
Transaction
resourcesWaitingForRead
in interface Transaction
public java.util.Collection<Shareable> resourcesTakenForWrite()
Transaction
resourcesTakenForWrite
in interface Transaction
public java.util.Collection<Shareable> resourcesWaitingForWrite()
Transaction
resourcesWaitingForWrite
in interface Transaction
public java.util.List<Operation> operationsDone()
Transaction
operationsDone
in interface Transaction
public void addOperation(Operation o)
addOperation
in interface Transaction
public UserContext getUserContext()
getUserContext
in interface Transaction
public void writeExternal(java.io.ObjectOutput arg0) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput arg0) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |