com.bigdata.journal
Class RootBlockCommitter

java.lang.Object
  extended by com.bigdata.journal.RootBlockCommitter
All Implemented Interfaces:
ICommitter

public class RootBlockCommitter
extends Object
implements ICommitter

Provides the callback to save the previous root block and store the address with the current CommitRecord. This enables access to historical root blocks since the next CommitRecord is accessible from the CommitRecordIndex. This is effective if slightly circuitious.

Author:
Martyn Cutcher

Constructor Summary
RootBlockCommitter(AbstractJournal journal)
           
 
Method Summary
 long handleCommit(long commitTime)
          Write the current root block to the Journal and return its address to be stored in the CommitRecord.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootBlockCommitter

public RootBlockCommitter(AbstractJournal journal)
Method Detail

handleCommit

public long handleCommit(long commitTime)
Write the current root block to the Journal and return its address to be stored in the CommitRecord.

Specified by:
handleCommit in interface ICommitter
Parameters:
commitTime - The timestamp assigned to the commit.
Returns:
The address of the record from which the persistence capable data structure may be reloaded. If no changes have been made then the previous address should be returned as it is still valid.


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