com.caucho.transaction.xalog
Class AbstractXALogManager

java.lang.Object
  extended by com.caucho.transaction.xalog.AbstractXALogManager
Direct Known Subclasses:
XALogManager

public abstract class AbstractXALogManager
extends java.lang.Object

Implements a single log stream. Each log stream has two associated files in order to switch at the end of the file.


Constructor Summary
AbstractXALogManager()
           
 
Method Summary
abstract  void close()
          Closes the log manager.
abstract  void flush()
          Returns a stream for a new transaction.
abstract  AbstractXALogStream getStream()
          Returns a stream for a new transaction.
abstract  boolean hasCommittedXid(XidImpl xid)
          True if the xid is an already-committed xid
abstract  void init()
          Initialize the log manager.
abstract  void setPath(Path path)
          Sets a log path.
abstract  void start()
          Starts the log manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXALogManager

public AbstractXALogManager()
Method Detail

setPath

public abstract void setPath(Path path)
                      throws java.io.IOException
Sets a log path.

Throws:
java.io.IOException

init

public abstract void init()
Initialize the log manager.


start

public abstract void start()
                    throws java.io.IOException
Starts the log manager.

Throws:
java.io.IOException

hasCommittedXid

public abstract boolean hasCommittedXid(XidImpl xid)
True if the xid is an already-committed xid


getStream

public abstract AbstractXALogStream getStream()
Returns a stream for a new transaction.


flush

public abstract void flush()
Returns a stream for a new transaction.


close

public abstract void close()
Closes the log manager.