com.faunos.skwish.sys.mgr
Class TxnGapTable

java.lang.Object
  extended by com.faunos.skwish.sys.mgr.TxnGapTable

public class TxnGapTable
extends Object

Author:
Babak Farhang

Constructor Summary
protected TxnGapTable(FileChannel table)
          Creates a new instance with no log name.
protected TxnGapTable(FileChannel table, String logName)
          Creates a new instance with the specified logName.
 
Method Summary
 long getCommitIdGap(long txnId)
           
 long newTxnId()
           
 void setGapValue(long gap, long txnId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxnGapTable

protected TxnGapTable(FileChannel table)
               throws IOException
Creates a new instance with no log name.

Throws:
IOException

TxnGapTable

protected TxnGapTable(FileChannel table,
                      String logName)
               throws IOException
Creates a new instance with the specified logName.

Throws:
IOException
Method Detail

getCommitIdGap

public long getCommitIdGap(long txnId)
                    throws IOException,
                           NotFoundException
Throws:
IOException
NotFoundException

newTxnId

public long newTxnId()
              throws IOException
Throws:
IOException

setGapValue

public void setGapValue(long gap,
                        long txnId)
                 throws IOException
Throws:
IOException


SourceForge.net Logo