org.compass.needle.terracotta.transaction.processor
Class TerracottaTransactionProcessor

java.lang.Object
  extended by org.compass.core.lucene.engine.transaction.support.AbstractTransactionProcessor
      extended by org.compass.core.lucene.engine.transaction.support.AbstractSearchTransactionProcessor
          extended by org.compass.core.lucene.engine.transaction.support.AbstractJobBasedTransactionProcessor
              extended by org.compass.needle.terracotta.transaction.processor.TerracottaTransactionProcessor
All Implemented Interfaces:
TransactionProcessor

public class TerracottaTransactionProcessor
extends AbstractJobBasedTransactionProcessor

The actual terracotta transaction processor that simply delegates the commit point to TerracottaTransactionProcessorFactory.add(org.compass.core.lucene.engine.transaction.support.job.TransactionJobs).

Author:
kimchy
See Also:
TerracottaTransactionProcessorFactory

Field Summary
 
Fields inherited from class org.compass.core.lucene.engine.transaction.support.AbstractTransactionProcessor
indexManager, mapping, searchEngine, searchEngineFactory
 
Constructor Summary
TerracottaTransactionProcessor(LuceneSearchEngine searchEngine, TerracottaTransactionProcessorFactory processorFactory)
           
 
Method Summary
protected  void doCommit(boolean onePhase, TransactionJobs jobs)
           
protected  void doFlushCommit(TransactionJobs jobs)
           
protected  void doPrepare(TransactionJobs jobs)
           
protected  void doRollback(TransactionJobs jobs)
           
 String getName()
          Retuns the name of this transaction processor.
 
Methods inherited from class org.compass.core.lucene.engine.transaction.support.AbstractJobBasedTransactionProcessor
begin, commit, create, delete, delete, find, flush, flushCommit, get, internalSearch, prepare, rollback, update
 
Methods inherited from class org.compass.core.lucene.engine.transaction.support.AbstractSearchTransactionProcessor
performFind, performGet, performInternalSearch
 
Methods inherited from class org.compass.core.lucene.engine.transaction.support.AbstractTransactionProcessor
buildInternalSearch, findByQuery, getResourceMapping, getSettingName, isInvalidateCacheOnCommit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerracottaTransactionProcessor

public TerracottaTransactionProcessor(LuceneSearchEngine searchEngine,
                                      TerracottaTransactionProcessorFactory processorFactory)
Method Detail

getName

public String getName()
Description copied from interface: TransactionProcessor
Retuns the name of this transaction processor.


doPrepare

protected void doPrepare(TransactionJobs jobs)
                  throws SearchEngineException
Specified by:
doPrepare in class AbstractJobBasedTransactionProcessor
Throws:
SearchEngineException

doFlushCommit

protected void doFlushCommit(TransactionJobs jobs)
Specified by:
doFlushCommit in class AbstractJobBasedTransactionProcessor

doCommit

protected void doCommit(boolean onePhase,
                        TransactionJobs jobs)
                 throws SearchEngineException
Specified by:
doCommit in class AbstractJobBasedTransactionProcessor
Throws:
SearchEngineException

doRollback

protected void doRollback(TransactionJobs jobs)
                   throws SearchEngineException
Specified by:
doRollback in class AbstractJobBasedTransactionProcessor
Throws:
SearchEngineException


Copyright (c) 2004-2009 The Compass Project.