org.objectweb.howl.log.xa
Class XACommittingTx

java.lang.Object
  extended by org.objectweb.howl.log.xa.XACommittingTx

public class XACommittingTx
extends java.lang.Object

XA Transaction Managers write log records using the XALogger subclass of the basic HOWL Logger. The XALogger methods keep track of transactions that are in the COMMITTING state using XACommittingTx objects.

Author:
Michael Giroux

Method Summary
 long getLogKey()
           
 byte[][] getRecord()
          returns the byte[][] containing the COMMIT record data.
 boolean isDone()
          returns done as maintained by XALogger.putCommit() and XALogger.putDone().
 boolean isMoving()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRecord

public final byte[][] getRecord()
returns the byte[][] containing the COMMIT record data.

This method is used by the log overflow notification processor to retrieve the original record data and write a new copy of the COMMIT record.

Returns:
the byte[][] containing the COMMIT record data.

getLogKey

public final long getLogKey()
Returns:
the log key associated with the COMMIT record for this transaction.

isDone

public final boolean isDone()
returns done as maintained by XALogger.putCommit() and XALogger.putDone().

Returns:
boolean indicating whether the two-phase-commit processing is complete.

isMoving

public final boolean isMoving()
Returns:
true if logOverflowNotification routine is moving the record.

The XALogger.putDone() method waits until moving is false.



Copyright © 2003-2010 HOWL Development Team. All Rights Reserved.