|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvishnu.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 Transactionpublic boolean isAborted()
Transaction
isAborted in interface Transactionpublic void commit()
Transaction
commit in interface Transactionpublic boolean isCommited()
Transaction
isCommited in interface Transactionpublic boolean isFinished()
Transaction
isFinished in interface Transactionpublic boolean isRunning()
Transaction
isRunning in interface Transactionpublic java.util.Collection<Shareable> resourcesTakenForRead()
Transaction
resourcesTakenForRead in interface Transactionpublic java.util.Collection<Shareable> resourcesWaitingForRead()
Transaction
resourcesWaitingForRead in interface Transactionpublic java.util.Collection<Shareable> resourcesTakenForWrite()
Transaction
resourcesTakenForWrite in interface Transactionpublic java.util.Collection<Shareable> resourcesWaitingForWrite()
Transaction
resourcesWaitingForWrite in interface Transactionpublic java.util.List<Operation> operationsDone()
Transaction
operationsDone in interface Transactionpublic void addOperation(Operation o)
addOperation in interface Transactionpublic UserContext getUserContext()
getUserContext in interface Transaction
public void writeExternal(java.io.ObjectOutput arg0)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput arg0)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||