com.sun.jini.mahalo
Class GroupTxnManagerTransaction

java.lang.Object
  extended by com.sun.jini.mahalo.GroupTxnManagerTransaction
All Implemented Interfaces:
com.sun.jini.constants.TimeConstants, com.sun.jini.landlord.LeasedResource, java.io.Serializable, net.jini.core.transaction.server.TransactionConstants

public class GroupTxnManagerTransaction
extends java.lang.Object
implements net.jini.core.transaction.server.TransactionConstants, com.sun.jini.constants.TimeConstants, com.sun.jini.landlord.LeasedResource, java.io.Serializable

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.

Author:
Sun Microsystems, Inc. ** GAHALO ** Added Serializable support.
See Also:
Serialized Form

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

join

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
Implementation of the join method.

Parameters:
part - The joining TransactionParticpant
crashCount - The crashcount associated with the joining TransactionParticipant
Throws:
net.jini.core.transaction.CannotJoinException
net.jini.core.transaction.server.CrashCountException
java.rmi.RemoteException
See Also:
TransactionParticipant

getState

public int getState()
This method returns the state of the transaction. Since the purpose of the set of ParticipantHolders is to associate a Transaction with a group of participants joined the transaction, we would like to get the state of the transaction associated with the aforementioned set.


getTransaction

public net.jini.core.transaction.Transaction getTransaction()

getExpiration

public long getExpiration()
Specified by:
getExpiration in interface com.sun.jini.landlord.LeasedResource

setExpiration

public void setExpiration(long newExpiration)
Specified by:
setExpiration in interface com.sun.jini.landlord.LeasedResource

getCookie

public net.jini.id.Uuid getCookie()
Specified by:
getCookie in interface com.sun.jini.landlord.LeasedResource

getID

protected long getID()
Return the ID of this transaction


setLogManager

protected void setLogManager(com.sun.jini.mahalo.log.LogManager logmgr)
Setter method for the LogManager.


setTaskManager

protected void setTaskManager(com.sun.jini.thread.TaskManager taskmgr)
Setter method for the TaskManager.


setWakeupManager

protected void setWakeupManager(com.sun.jini.thread.WakeupManager wakeupMgr)
Setter method for WakeupManager.


setSettler

protected void setSettler(com.sun.jini.mahalo.TxnSettler settler)
Setter method for TxnSettler.


setLocks

protected void setLocks()
Setter method for the locks.



Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.