org.sakaiproject.search.indexer.impl
Class JournalManagerUpdateTransaction
java.lang.Object
org.sakaiproject.search.indexer.impl.JournalManagerUpdateTransaction
- All Implemented Interfaces:
- IndexUpdateTransactionListener, TransactionListener
public class JournalManagerUpdateTransaction
- extends Object
- implements IndexUpdateTransactionListener
A transaction listener that connects to the journalManager
- Author:
- ieb Unit test
- See Also:
org.sakaiproject.search.indexer.impl.test.TransactionalIndexWorkerTest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JournalManagerUpdateTransaction
public JournalManagerUpdateTransaction()
init
public void init()
destroy
public void destroy()
prepare
public void prepare(IndexTransaction transaction)
throws IndexJournalException
- Description copied from interface:
TransactionListener
- Prepare to commit the transaction
- Specified by:
prepare in interface TransactionListener
- Throws:
IndexJournalException- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#prepare(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
commit
public void commit(IndexTransaction transaction)
throws IndexTransactionException
- Specified by:
commit in interface TransactionListener
- Throws:
IndexTransactionException- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#commit(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
open
public void open(IndexTransaction transaction)
throws IndexJournalException
- Specified by:
open in interface TransactionListener
- Throws:
IndexJournalException- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#open(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
close
public void close(IndexTransaction transaction)
throws IndexTransactionException
- Specified by:
close in interface TransactionListener
- Throws:
IndexTransactionException- See Also:
TransactionListener.close(org.sakaiproject.search.transaction.api.IndexTransaction)
rollback
public void rollback(IndexTransaction transaction)
- Specified by:
rollback in interface TransactionListener
- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#rollback(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
getJournalManager
public JournalManager getJournalManager()
- Returns:
- the journalManager
setJournalManager
public void setJournalManager(JournalManager journalManager)
- Parameters:
journalManager - the journalManager to set
Copyright © 2003-2012 Sakai Project. All Rights Reserved.