org.netbeans.mdr.persistence.btreeimpl.btreestorage
Class CachedPage

java.lang.Object
  extended by org.netbeans.mdr.persistence.btreeimpl.btreestorage.IntrusiveList.Member
      extended by org.netbeans.mdr.persistence.btreeimpl.btreestorage.CachedPage

public class CachedPage
extends IntrusiveList.Member

This represents a page fetched from the cache.


Field Summary
 byte[] contents
          the contents of the page
 
Method Summary
 void setWritable()
          Make this page writable.
 java.lang.String toString()
          format debugging info
 void unpin()
          client calls this when it is done with the page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contents

public byte[] contents
the contents of the page

Method Detail

setWritable

public void setWritable()
                 throws StorageException
Make this page writable. If it was not writable previously, this causes it to be logged. This must be called before the page is modified. If the cache is not currently in a transaction, this implicitly begins one.

Throws:
StorageException - I/O error logging the page

unpin

public void unpin()
           throws StorageException
client calls this when it is done with the page

Throws:
StorageException

toString

public java.lang.String toString()
format debugging info

Overrides:
toString in class java.lang.Object


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.