org.compass.core.lucene.engine.transaction.readcommitted
Class TransIndexManager

java.lang.Object
  extended by org.compass.core.lucene.engine.transaction.readcommitted.TransIndexManager
All Implemented Interfaces:
CompassConfigurable

public class TransIndexManager
extends Object
implements CompassConfigurable

Author:
kimchy

Constructor Summary
TransIndexManager(LuceneSearchEngineFactory searchEngineFactory, boolean concurrent)
           
 
Method Summary
 void close(String subIndex)
           
 void commit()
           
 void commit(String subIndex)
           
 void configure(CompassSettings settings)
          Configure using the given settings.
 Directory getDirectory(String subIndex)
           
 IndexReader getReader(String subIndex)
           
 IndexSearcher getSearcher(String subIndex)
           
 boolean hasTransactions()
           
 boolean hasTransIndex(String subIndex)
           
 void processJob(TransactionJob job)
           
 void rollback()
           
 void rollback(String subIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransIndexManager

public TransIndexManager(LuceneSearchEngineFactory searchEngineFactory,
                         boolean concurrent)
Method Detail

configure

public void configure(CompassSettings settings)
               throws CompassException
Description copied from interface: CompassConfigurable
Configure using the given settings.

Specified by:
configure in interface CompassConfigurable
Parameters:
settings - The settings for the configured object
Throws:
CompassException

processJob

public void processJob(TransactionJob job)
                throws Exception
Throws:
Exception

getReader

public IndexReader getReader(String subIndex)
                      throws IOException
Throws:
IOException

getSearcher

public IndexSearcher getSearcher(String subIndex)
                          throws IOException
Throws:
IOException

getDirectory

public Directory getDirectory(String subIndex)

hasTransactions

public boolean hasTransactions()

hasTransIndex

public boolean hasTransIndex(String subIndex)

commit

public void commit()
            throws IOException
Throws:
IOException

rollback

public void rollback()
              throws IOException
Throws:
IOException

commit

public void commit(String subIndex)
            throws IOException
Throws:
IOException

rollback

public void rollback(String subIndex)
              throws IOException
Throws:
IOException

close

public void close(String subIndex)
           throws IOException
Throws:
IOException


Copyright (c) 2004-2009 The Compass Project.