org.iids.aos.kernel.ac
Class TransactionIDTable

java.lang.Object
  extended by 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

Field Summary
protected  Role r
          The owner of TIDs in this table
protected  java.util.HashMap<TransactionID,TIDRecord> table
          The table
 
Constructor Summary
TransactionIDTable(Role r)
          Creates a new instance of TransactionIDTable
 
Method Summary
 void add(TransactionID tid, java.lang.String[] secSuites)
           
 Role getOwner()
           
 TIDRecord getTIDRecord(TransactionID tid)
           
 GetWaitSetResult getWaitSet(TransactionID[] tids)
           
 void removeAndUnlockWaitingFor(TransactionID receivedTID, java.util.HashMap<TransactionID,TIDRecord> waitSet)
           
 void setOwner(Role r)
           
 java.lang.String toString()
           
 void unlockWaitingFor(java.util.HashMap<TransactionID,TIDRecord> waitSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

r

protected Role r
The owner of TIDs in this table


table

protected java.util.HashMap<TransactionID,TIDRecord> table
The table

Constructor Detail

TransactionIDTable

public TransactionIDTable(Role r)
Creates a new instance of TransactionIDTable

Method Detail

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.