org.sakaiproject.search.optimize.shared.impl
Class DbJournalOptimizationManager

java.lang.Object
  extended by org.sakaiproject.search.optimize.shared.impl.DbJournalOptimizationManager
All Implemented Interfaces:
JournalManager

public class DbJournalOptimizationManager
extends Object
implements JournalManager

Author:
ieb

Constructor Summary
DbJournalOptimizationManager()
           
 
Method Summary
 void commitSave(JournalManagerState jms)
           
 void destroy()
           
 void doOpenTransaction(IndexTransaction transaction)
          Perfomes the open, giving the JournalManager implementation a chance to veto the transaction.
 org.sakaiproject.cluster.api.ClusterService getClusterService()
           
 DataSource getDatasource()
           
 JournalSettings getJournalSettings()
           
 long getNextSavePoint(long savePoint)
           
 org.sakaiproject.component.api.ServerConfigurationService getServerConfigurationService()
           
 void init()
           
 JournalManagerState prepareSave(long transactionId)
           
 void rollbackSave(JournalManagerState jms)
           
 void setClusterService(org.sakaiproject.cluster.api.ClusterService clusterService)
           
 void setDatasource(DataSource datasource)
           
 void setJournalSettings(JournalSettings journalSettings)
           
 void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbJournalOptimizationManager

public DbJournalOptimizationManager()
Method Detail

destroy

public void destroy()

init

public void init()

commitSave

public void commitSave(JournalManagerState jms)
                throws IndexJournalException
Specified by:
commitSave in interface JournalManager
Throws:
IndexJournalException
See Also:
JournalManager.commitSave(org.sakaiproject.search.journal.api.JournalManagerState)

getNextSavePoint

public long getNextSavePoint(long savePoint)
                      throws JournalErrorException
Specified by:
getNextSavePoint in interface JournalManager
Returns:
Throws:
JournalErrorException - if there was an error getting the next savePoint
See Also:
JournalManager.getNextSavePoint(long)

prepareSave

public JournalManagerState prepareSave(long transactionId)
                                throws IndexJournalException
Specified by:
prepareSave in interface JournalManager
Returns:
Throws:
LockTimeoutException
IndexJournalException
See Also:
JournalManager.prepareSave(long)

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)
                       throws IndexJournalException
Description copied from interface: JournalManager
Perfomes the open, giving the JournalManager implementation a chance to veto the transaction.

Specified by:
doOpenTransaction in interface JournalManager
Throws:
IndexJournalException
IndexTransactionException
See Also:
JournalManager.doOpenTransaction(org.sakaiproject.search.transaction.api.IndexTransaction)

getClusterService

public org.sakaiproject.cluster.api.ClusterService getClusterService()
Returns:
the clusterService

setClusterService

public void setClusterService(org.sakaiproject.cluster.api.ClusterService clusterService)
Parameters:
clusterService - the clusterService to set

getDatasource

public DataSource getDatasource()
Returns:
the datasource

setDatasource

public void setDatasource(DataSource datasource)
Parameters:
datasource - the datasource to set

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

getJournalSettings

public JournalSettings getJournalSettings()
Returns:
the journalSettings

setJournalSettings

public void setJournalSettings(JournalSettings journalSettings)
Parameters:
journalSettings - the journalSettings to set


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