org.iids.aos.kernel.ac
Class TransactionIDTable
java.lang.Object
org.iids.aos.kernel.ac.TransactionIDTable
- All Implemented Interfaces:
- KernelResource
public class TransactionIDTable
- extends java.lang.Object
- implements KernelResource
A table of transaction IDs and secSuites belonging to a role
for ACTP purposes.
- Author:
- arno
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
r
protected Role r
- The owner of TIDs in this table
table
protected java.util.HashMap<TransactionID,TIDRecord> table
- The table
TransactionIDTable
public TransactionIDTable(Role r)
- Creates a new instance of
TransactionIDTable
add
public void add(TransactionID tid,
java.lang.String[] secSuites)
throws KernelException
- Throws:
KernelException
getWaitSet
public GetWaitSetResult getWaitSet(TransactionID[] tids)
removeAndUnlockWaitingFor
public void removeAndUnlockWaitingFor(TransactionID receivedTID,
java.util.HashMap<TransactionID,TIDRecord> waitSet)
unlockWaitingFor
public void unlockWaitingFor(java.util.HashMap<TransactionID,TIDRecord> waitSet)
getTIDRecord
public TIDRecord getTIDRecord(TransactionID tid)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getOwner
public Role getOwner()
- Specified by:
getOwner in interface KernelResource
setOwner
public void setOwner(Role r)
throws KernelException
- Specified by:
setOwner in interface KernelResource
- Throws:
KernelException
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.