com.bigdata.journal
Interface ICommitter

All Known Implementing Classes:
BTree, CommitRecordIndex, CommitTimeIndex, CounterSetBTree, EventReceiver.EventBTree, IndexSegmentIndex, JournalIndex, MetadataIndex, Name2Addr

public interface ICommitter

An interface implemented by a persistence capable data structure such as a btree so that it can participate in the commit protocol for the store.

This interface is invoked by AbstractJournal.commit() for each registered ICommitter. The address returned by #handleCommit() will be saved in the ICommitRecord under the index identified by the ICommitter when it was registered.

Version:
$Id: ICommitter.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
IAtomicStore.setCommitter(int, ICommitter)

Method Summary
 long handleCommit(long commitTime)
          Flush dirty state to the store in preparation for an atomic commit and return the address from which the persistence capable data structure may be reloaded.
 

Method Detail

handleCommit

long handleCommit(long commitTime)
Flush dirty state to the store in preparation for an atomic commit and return the address from which the persistence capable data structure may be reloaded.

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-2009 SYSTAP, LLC. All Rights Reserved.