com.bigdata.btree
Interface IDirtyListener


public interface IDirtyListener

An interface that may be used to learn when a BTree becomes dirty.

Version:
$Id: IDirtyListener.java 4926 2011-07-15 19:34:25Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 void dirtyEvent(ICheckpointProtocol btree)
          The btree has become dirty.
 

Method Detail

dirtyEvent

void dirtyEvent(ICheckpointProtocol btree)
The btree has become dirty.

Note: This event is always generated for a new btree. Once a btree is created it remains dirty until the root (and any dirty children) have been flushed to the backing store. A btree that is read from the backing store is always clean and consists of "immutable" nodes and/or leaves. A btree remains clean until there is a write on some node or leaf. That write triggers copy-on-write, which percolates from the point of the write up to the root node and results in the reference to the root node being replaced. When that happens a dirty event is generated.

Parameters:
btree - The btree.


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.