org.sakaiproject.search.journal.impl
Class JournaledFSIndexStorageUpdateTransactionListener
java.lang.Object
org.sakaiproject.search.journal.impl.JournaledFSIndexStorageUpdateTransactionListener
- All Implemented Interfaces:
- MergeTransactionListener, TransactionListener
public class JournaledFSIndexStorageUpdateTransactionListener
- extends Object
- implements MergeTransactionListener
Listens for Transaction changes in the 2PC associated with an index update,
This adds new segments into the current index reader, it does not merge the
indexes this is performed by a seperate index merge operation, run
periodically to take the new inbound segments into a permanent space
- Author:
- ieb TODO Unit test
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JournaledFSIndexStorageUpdateTransactionListener
public JournaledFSIndexStorageUpdateTransactionListener()
init
public void init()
destroy
public void destroy()
open
public void open(IndexTransaction transaction)
throws IndexTransactionException
- Specified by:
open in interface TransactionListener
- Throws:
IndexTransactionException- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#open(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
prepare
public void prepare(IndexTransaction transaction)
throws IndexTransactionException
- Description copied from interface:
TransactionListener
- Prepare to commit the transaction
- Specified by:
prepare in interface TransactionListener
- Throws:
IndexJournalException
IndexTransactionException- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#prepare(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
rollback
public void rollback(IndexTransaction transaction)
throws IndexTransactionException
- Specified by:
rollback in interface TransactionListener
- Throws:
IndexTransactionException- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#rollback(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
close
public void close(IndexTransaction transaction)
throws IndexTransactionException
- Specified by:
close in interface TransactionListener
- Throws:
IndexTransactionException
commit
public void commit(IndexTransaction transaction)
throws IndexTransactionException
- Specified by:
commit in interface TransactionListener
- Throws:
IndexTransactionException
getJournaledIndex
public JournaledIndex getJournaledIndex()
- Returns:
- the journaledIndex
setJournaledIndex
public void setJournaledIndex(JournaledIndex journaledIndex)
- Parameters:
journaledIndex - the journaledIndex to set
getJournalManager
public JournalManager getJournalManager()
- Returns:
- the journalManager
setJournalManager
public void setJournalManager(JournalManager journalManager)
- Parameters:
journalManager - the journalManager to set
getJournalStorage
public JournalStorage getJournalStorage()
- Returns:
- the journalStorage
setJournalStorage
public void setJournalStorage(JournalStorage journalStorage)
- Parameters:
journalStorage - the journalStorage to set
Copyright © 2003-2012 Sakai Project. All Rights Reserved.