|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.mahalo.GroupTxnManagerTransaction
public class GroupTxnManagerTransaction
TxnManagerTransaction is a class which captures the internal representation of a transaction in the TxnManagerImpl server. This class is associated with a transaction id. The information encapsulated includes the list of participants which have joined the transaction, the state of the transaction, the crash. The user of a ParticipantHolder must make the association between an instance of a ParticipantHolder and some sort of key or index.
Field Summary |
---|
Fields inherited from interface net.jini.core.transaction.server.TransactionConstants |
---|
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING |
Fields inherited from interface com.sun.jini.constants.TimeConstants |
---|
DAYS, HOURS, MINUTES, SECONDS |
Method Summary | |
---|---|
net.jini.id.Uuid |
getCookie()
|
long |
getExpiration()
|
protected long |
getID()
Return the ID of this transaction |
int |
getState()
This method returns the state of the transaction. |
net.jini.core.transaction.Transaction |
getTransaction()
|
void |
join(net.jini.core.transaction.server.TransactionParticipant preparedPart,
long crashCount)
Implementation of the join method. |
void |
setExpiration(long newExpiration)
|
protected void |
setLocks()
Setter method for the locks. |
protected void |
setLogManager(com.sun.jini.mahalo.log.LogManager logmgr)
Setter method for the LogManager. |
protected void |
setSettler(com.sun.jini.mahalo.TxnSettler settler)
Setter method for TxnSettler. |
protected void |
setTaskManager(com.sun.jini.thread.TaskManager taskmgr)
Setter method for the TaskManager. |
protected void |
setWakeupManager(com.sun.jini.thread.WakeupManager wakeupMgr)
Setter method for WakeupManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void join(net.jini.core.transaction.server.TransactionParticipant preparedPart, long crashCount) throws net.jini.core.transaction.CannotJoinException, net.jini.core.transaction.server.CrashCountException, java.rmi.RemoteException
part
- The joining TransactionParticpant
crashCount
- The crashcount associated with the joining
TransactionParticipant
net.jini.core.transaction.CannotJoinException
net.jini.core.transaction.server.CrashCountException
java.rmi.RemoteException
TransactionParticipant
public int getState()
public net.jini.core.transaction.Transaction getTransaction()
public long getExpiration()
getExpiration
in interface com.sun.jini.landlord.LeasedResource
public void setExpiration(long newExpiration)
setExpiration
in interface com.sun.jini.landlord.LeasedResource
public net.jini.id.Uuid getCookie()
getCookie
in interface com.sun.jini.landlord.LeasedResource
protected long getID()
protected void setLogManager(com.sun.jini.mahalo.log.LogManager logmgr)
protected void setTaskManager(com.sun.jini.thread.TaskManager taskmgr)
protected void setWakeupManager(com.sun.jini.thread.WakeupManager wakeupMgr)
protected void setSettler(com.sun.jini.mahalo.TxnSettler settler)
protected void setLocks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |