org.sakaiproject.search.optimize.shared.impl
Class SharedFilesystemSaveTransactionListener
java.lang.Object
org.sakaiproject.search.optimize.shared.impl.SharedFilesystemSaveTransactionListener
- All Implemented Interfaces:
- IndexUpdateTransactionListener, TransactionListener
public class SharedFilesystemSaveTransactionListener
- extends Object
- implements IndexUpdateTransactionListener
A transaction listener that connects to the journalManager and saves segments
- Author:
- ieb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedFilesystemSaveTransactionListener
public SharedFilesystemSaveTransactionListener()
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)
- Specified by:
open in interface TransactionListener
- 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)
throws IndexJournalException
- Specified by:
rollback in interface TransactionListener
- Throws:
IndexJournalException- See Also:
org.sakaiproject.search.transaction.api.TransactionListener#rollback(org.sakaiproject.search.indexer.api.IndexUpdateTransaction)
getSharedFilesystemJournalStorage
public SharedFilesystemJournalStorage getSharedFilesystemJournalStorage()
- Returns:
- the sharedFilesystemJournalStorage
setSharedFilesystemJournalStorage
public void setSharedFilesystemJournalStorage(SharedFilesystemJournalStorage sharedFilesystemJournalStorage)
- Parameters:
sharedFilesystemJournalStorage - the sharedFilesystemJournalStorage to set
getSharedSleep
public long getSharedSleep()
- Returns:
- the sharedSleep
setSharedSleep
public void setSharedSleep(long sharedSleep)
- Parameters:
sharedSleep - the sharedSleep to set
Copyright © 2003-2012 Sakai Project. All Rights Reserved.