|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.tspaces.Transaction
This is the client portion of the TSpaces Transaction support.
It allows the user to do the following: create a transaction add a tuplespace to the transaction begin, commit and abort transactionsIt also contains a number of utility rtns related to Transaction processing
| Constructor Summary | |
Transaction()
Each transaction starts with only a little bit of state |
|
| Method Summary | |
void |
abortTrans()
Signifies that any operation performed by this transaction have to be undone at the T Spaces server |
void |
addTupleSpace(TupleSpace space_)
Adds a TupleSpace object to this Transaction object so that any operation on an added space will be treated as part of this Transaction object if enclosed between a beginTrans() and commitTrans()/abortTrans() operations |
void |
beginTrans()
Denotes the start of a transaction. |
void |
commitTrans()
This function must be called if a transaction is to be commutted. |
static java.lang.String |
generateUniqueID()
This static class method returns a unique identifier for this transaction. |
int |
getTransState()
Returns the state of this transaction object |
java.lang.String |
getUniqueID()
This function returns the unique identifier for this transaction. |
int |
seqNumber()
Returns a unique number associated with this Transaction instance. |
void |
setTransState(int transState_)
This is used by TupleSpace object to set the state of the transaction object to _RUNNING_STATE once a command has been sent. |
void |
setUniqueID(java.lang.String transactionID_)
This function is called after the first command for this Transaction object has been sent to set the unique id for this transaction. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Transaction()
| Method Detail |
public void addTupleSpace(TupleSpace space_)
throws TupleSpaceCommunicationException,
TupleSpaceClientException,
TupleSpaceServerException
space_ - TupleSpace object to be added to this Transaction objectpublic void beginTrans()
public void commitTrans()
throws TupleSpaceException
public void abortTrans()
throws TupleSpaceException
public void setTransState(int transState_)
transState_ - the new state of the transaction objectpublic int getTransState()
public void setUniqueID(java.lang.String transactionID_)
transactionID_ - unique ID for this transaction objectTupleSpace.talkToAServerpublic java.lang.String getUniqueID()
TupleSpace.talkToAServerpublic static java.lang.String generateUniqueID()
id - is a string that will be appended to the generated timebased id.TupleSpace.talkToAServerpublic int seqNumber()
TupleSpace.talkToAServer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||