org.sakaiproject.search.indexer.impl
Class TransactionIndexManagerImpl

java.lang.Object
  extended by org.sakaiproject.search.transaction.impl.TransactionManagerImpl
      extended by org.sakaiproject.search.indexer.impl.TransactionIndexManagerImpl
All Implemented Interfaces:
TransactionIndexManager

public class TransactionIndexManagerImpl
extends TransactionManagerImpl

Author:
ieb Unit test
See Also:
org.sakaiproject.search.indexer.impl.test.TransactionalIndexWorkerTest

Field Summary
protected static String TEMP_INDEX_NAME
           
 
Fields inherited from class org.sakaiproject.search.transaction.impl.TransactionManagerImpl
sequence
 
Constructor Summary
TransactionIndexManagerImpl()
           
 
Method Summary
 void addTransactionListener(TransactionListener transactionListener)
           
 void destroy()
           
 org.apache.lucene.analysis.Analyzer getAnalyzer()
           
 AnalyzerFactory getAnalyzerFactory()
           
 JournalSettings getJournalSettings()
           
protected  File getTemporarySegment(long txid)
           
 void init()
           
 IndexUpdateTransaction openTransaction(Map<String,Object> m)
          Creates a new trasaction for index update
 void setAnalyzerFactory(AnalyzerFactory analyzerFactory)
           
 void setJournalSettings(JournalSettings journalSettings)
           
 void setTransactionListeners(List<TransactionListener> transactionListeners)
           
 
Methods inherited from class org.sakaiproject.search.transaction.impl.TransactionManagerImpl
getSequence, getTransactionListeners, removeTransactionListener, setSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMP_INDEX_NAME

protected static final String TEMP_INDEX_NAME
See Also:
Constant Field Values
Constructor Detail

TransactionIndexManagerImpl

public TransactionIndexManagerImpl()
Method Detail

init

public void init()
Overrides:
init in class TransactionManagerImpl

destroy

public void destroy()
Overrides:
destroy in class TransactionManagerImpl

openTransaction

public IndexUpdateTransaction openTransaction(Map<String,Object> m)
                                       throws IndexTransactionException
Description copied from interface: TransactionIndexManager
Creates a new trasaction for index update

Parameters:
m - the properties of the transaction
Returns:
Throws:
IndexTransactionException

getTemporarySegment

protected File getTemporarySegment(long txid)
                            throws IOException
Returns:
Throws:
IOException

getAnalyzer

public org.apache.lucene.analysis.Analyzer getAnalyzer()

getAnalyzerFactory

public AnalyzerFactory getAnalyzerFactory()
Returns:
the analyzerFactory

setAnalyzerFactory

public void setAnalyzerFactory(AnalyzerFactory analyzerFactory)
Parameters:
analyzerFactory - the analyzerFactory to set

addTransactionListener

public void addTransactionListener(TransactionListener transactionListener)
Specified by:
addTransactionListener in interface TransactionIndexManager
Overrides:
addTransactionListener in class TransactionManagerImpl

setTransactionListeners

public void setTransactionListeners(List<TransactionListener> transactionListeners)
Overrides:
setTransactionListeners in class TransactionManagerImpl
Parameters:
transactionListeners - the transactionListeners 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.