org.sakaiproject.search.journal.impl
Class DbJournalManager
java.lang.Object
org.sakaiproject.search.journal.impl.DbJournalManager
- All Implemented Interfaces:
- JournalManager
public class DbJournalManager
- extends Object
- implements JournalManager
A database backed Journal Manager
- Author:
- ieb Unit test
- See Also:
Unit test,
org.sakaiproject.search.indexer.impl.test.DbJournalManagerTest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbJournalManager
public DbJournalManager()
init
public void init()
destroy
public void destroy()
getDatasource
public DataSource getDatasource()
- Returns:
- the datasource
setDatasource
public void setDatasource(DataSource datasource)
- Parameters:
datasource - the datasource to set
getNextSavePoint
public long getNextSavePoint(long savePoint)
throws JournalErrorException
- Specified by:
getNextSavePoint in interface JournalManager
- Returns:
-
- Throws:
JournalErrorException- See Also:
org.sakaiproject.search.journal.api.JournalManager#getLaterSavePoints(long)
prepareSave
public JournalManagerState prepareSave(long transactionId)
throws IndexJournalException
- Specified by:
prepareSave in interface JournalManager
- Returns:
-
- Throws:
IndexJournalException- See Also:
JournalManager.prepareSave(long)
commitSave
public void commitSave(JournalManagerState jms)
throws IndexJournalException
- Specified by:
commitSave in interface JournalManager
- Throws:
IndexJournalException- See Also:
org.sakaiproject.search.journal.api.JournalManager#commitSave()
rollbackSave
public void rollbackSave(JournalManagerState jms)
- Specified by:
rollbackSave in interface JournalManager
- See Also:
JournalManager.rollbackSave(org.sakaiproject.search.journal.api.JournalManagerState)
doOpenTransaction
public void doOpenTransaction(IndexTransaction transaction)
- Description copied from interface:
JournalManager
- Perfomes the open, giving the JournalManager implementation a chance to
veto the transaction.
- Specified by:
doOpenTransaction in interface JournalManager
getServerConfigurationService
public org.sakaiproject.component.api.ServerConfigurationService getServerConfigurationService()
- Returns:
- the serverConfigurationService
setServerConfigurationService
public void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
- Parameters:
serverConfigurationService - the serverConfigurationService to set
Copyright © 2003-2012 Sakai Project. All Rights Reserved.