org.egothor.listener
Class TransactionListener

java.lang.Object
  extended by org.egothor.listener.TransactionListener
All Implemented Interfaces:
ListenBarrelWriter, ListenSlotMap

public class TransactionListener
extends java.lang.Object
implements ListenSlotMap

TransactionListener.java Created on 1. srpen 2006, 23:58

Author:
galambos

Constructor Summary
TransactionListener(java.lang.String listenerFilename)
           
TransactionListener(java.lang.String transactionBaseFilename, long transactionID)
           
 
Method Summary
 void logAssignment(long gid, long lid)
           
 void logDestroy(int localSlot)
           
 void logRemoval(long gid, int slot, long lid)
           
 void logSave(int localSlot)
           
 SequenceWithClose<GlobalPosition> readGSL()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionListener

public TransactionListener(java.lang.String transactionBaseFilename,
                           long transactionID)
                    throws java.io.IOException
Throws:
java.io.IOException

TransactionListener

public TransactionListener(java.lang.String listenerFilename)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

logDestroy

public void logDestroy(int localSlot)
Specified by:
logDestroy in interface ListenSlotMap

logSave

public void logSave(int localSlot)
Specified by:
logSave in interface ListenSlotMap

logRemoval

public void logRemoval(long gid,
                       int slot,
                       long lid)
Specified by:
logRemoval in interface ListenSlotMap

logAssignment

public void logAssignment(long gid,
                          long lid)
Specified by:
logAssignment in interface ListenBarrelWriter

rollback

public void rollback()
Specified by:
rollback in interface ListenSlotMap

readGSL

public SequenceWithClose<GlobalPosition> readGSL()
                                          throws java.io.IOException
Specified by:
readGSL in interface ListenSlotMap
Throws:
java.io.IOException