com.caucho.db.store
Class XAWriteBlock

java.lang.Object
  extended by com.caucho.db.store.Block
      extended by com.caucho.db.store.WriteBlock
          extended by com.caucho.db.store.XAWriteBlock
All Implemented Interfaces:
SyncCacheListener

public class XAWriteBlock
extends WriteBlock

Represents a write (dirty) block.


Field Summary
 
Fields inherited from class com.caucho.db.store.WriteBlock
_block
 
Fields inherited from class com.caucho.db.store.Block
_freeBuffers
 
Constructor Summary
XAWriteBlock(Block block)
           
 
Method Summary
protected  void freeImpl()
          Called when the block is removed from the cache.
 byte[] getBuffer()
          Returns the block's buffer.
 java.lang.String toString()
           
 void writeImpl(int offset, int length)
          Write the dirty block.
 
Methods inherited from class com.caucho.db.store.Block
allocate, commit, free, getBlockId, getLock, invalidate, isDirty, isFlushDirtyOnCommit, isFree, read, setDirty, setFlushDirtyOnCommit, syncRemoveEvent, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAWriteBlock

public XAWriteBlock(Block block)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getBuffer

public byte[] getBuffer()
Returns the block's buffer.

Specified by:
getBuffer in class Block

writeImpl

public void writeImpl(int offset,
                      int length)
               throws java.io.IOException
Description copied from class: Block
Write the dirty block.

Overrides:
writeImpl in class Block
Throws:
java.io.IOException

freeImpl

protected void freeImpl()
Called when the block is removed from the cache.

Overrides:
freeImpl in class Block

toString

public java.lang.String toString()
Overrides:
toString in class WriteBlock