org.sakaiproject.search.journal.api
Interface JournalManager

All Known Implementing Classes:
DbJournalManager, DbJournalOptimizationManager

public interface JournalManager

The journal manage manages the state of the journal for the current node

Author:
ieb

Method Summary
 void commitSave(JournalManagerState jms)
           
 void doOpenTransaction(IndexTransaction transaction)
          Perfomes the open, giving the JournalManager implementation a chance to veto the transaction.
 long getNextSavePoint(long savePoint)
           
 JournalManagerState prepareSave(long transactionId)
           
 void rollbackSave(JournalManagerState jms)
           
 

Method Detail

getNextSavePoint

long getNextSavePoint(long savePoint)
                      throws JournalErrorException
Parameters:
savePoint -
Returns:
Throws:
JournalErrorException - if there was an error getting the next savePoint

prepareSave

JournalManagerState prepareSave(long transactionId)
                                throws IndexJournalException
Parameters:
transactionId -
Returns:
Throws:
IndexJournalException

commitSave

void commitSave(JournalManagerState jms)
                throws IndexJournalException
Parameters:
jms -
Throws:
IndexJournalException

rollbackSave

void rollbackSave(JournalManagerState jms)
Parameters:
jms -

doOpenTransaction

void doOpenTransaction(IndexTransaction transaction)
                       throws IndexJournalException
Perfomes the open, giving the JournalManager implementation a chance to veto the transaction.

Parameters:
transaction -
Throws:
IndexJournalException


Copyright © 2003-2012 Sakai Project. All Rights Reserved.