fabric.worker.transaction
Class TransactionRegistry

java.lang.Object
  extended by fabric.worker.transaction.TransactionRegistry

public final class TransactionRegistry
extends java.lang.Object

Holds a map from top-level transaction IDs to their logs.


Constructor Summary
TransactionRegistry()
           
 
Method Summary
static Log getInnermostLog(long tid)
          Returns the innermost transaction log for the given top-level tid (or null if no such log exists).
static Log getOrCreateInnermostLog(TransactionID tid)
          Returns the innermost transaction log whose top-level tid the same as that of the given tid.
static void register(Log log)
          Registers a newly created top-level transaction log.
static void remove(long topTid)
           
static void renumberObject(Store store, long onum, long newOnum)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionRegistry

public TransactionRegistry()
Method Detail

getInnermostLog

public static Log getInnermostLog(long tid)
Returns the innermost transaction log for the given top-level tid (or null if no such log exists).


getOrCreateInnermostLog

public static Log getOrCreateInnermostLog(TransactionID tid)
Returns the innermost transaction log whose top-level tid the same as that of the given tid. If no such log exists, a log is created for the given tid and is returned.


register

public static void register(Log log)
Registers a newly created top-level transaction log.


remove

public static void remove(long topTid)

renumberObject

public static void renumberObject(Store store,
                                  long onum,
                                  long newOnum)
Deprecated. 

Goes through all transaction logs and performs an onum renumbering. This is used by fabric.lang.Object.$forceRenumber. Do not call this unless if you really know what you are doing.