|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.search.transaction.impl.IndexTransactionImpl
org.sakaiproject.search.optimize.impl.IndexOptimizeTransactionImpl
public class IndexOptimizeTransactionImpl
A transaction holder for Index Optimizations
| Field Summary |
|---|
| Fields inherited from class org.sakaiproject.search.transaction.impl.IndexTransactionImpl |
|---|
manager, transactionId, transactionState |
| Fields inherited from interface org.sakaiproject.search.transaction.api.IndexTransaction |
|---|
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN, TRANSACTION_ACTIVE, TRANSACTION_STATUS |
| Constructor Summary | |
|---|---|
IndexOptimizeTransactionImpl(TransactionManagerImpl manager,
JournalSettings journalSettings,
Map<String,Object> m)
|
|
| Method Summary | |
|---|---|
protected void |
doAfterCommit()
|
protected void |
doAfterRollback()
|
org.apache.lucene.index.IndexWriter |
getIndexWriter()
get an index writer based on the transaction ID. |
File[] |
getOptimizableSegments()
Get the list of segments being optimised |
org.apache.lucene.index.IndexWriter |
getPermanentIndexWriter()
get the permanent index writer associated with this transaction, if it has been set |
org.apache.lucene.index.IndexWriter |
getTemporaryIndexWriter()
Get the index writer associated with this transaction |
void |
setOptimizableSegments(File[] optimzableSegments)
Set the list of segments being optimised |
void |
setPermanentIndexWriter(org.apache.lucene.index.IndexWriter pw)
Set the index writer of the permanent index associated with this transaction |
| Methods inherited from class org.sakaiproject.search.transaction.impl.IndexTransactionImpl |
|---|
clear, close, commit, doAfterClose, doAfterOpen, doAfterPrepare, doBeforeClose, doBeforeCommit, doBeforeOpen, doBeforePrepare, doBeforeRollback, get, getStatus, getTransactionId, open, prepare, put, rollback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sakaiproject.search.transaction.api.IndexTransaction |
|---|
clear, close, commit, get, getStatus, getTransactionId, open, prepare, put, rollback |
| Constructor Detail |
|---|
public IndexOptimizeTransactionImpl(TransactionManagerImpl manager,
JournalSettings journalSettings,
Map<String,Object> m)
throws IndexTransactionException
m - impl -
IndexTransactionException| Method Detail |
|---|
protected void doAfterRollback()
throws IndexTransactionException
doAfterRollback in class IndexTransactionImplIndexTransactionExceptionIndexTransactionImpl.doAfterRollback()
protected void doAfterCommit()
throws IndexTransactionException
doAfterCommit in class IndexTransactionImplIndexTransactionExceptionIndexTransactionImpl.doAfterCommit()
public org.apache.lucene.index.IndexWriter getIndexWriter()
throws IndexTransactionException
IndexTransactionExceptionorg.sakaiproject.search.component.service.index.transactional.api.IndexUpdateTransaction#getIndexWriter()public File[] getOptimizableSegments()
IndexOptimizeTransaction
getOptimizableSegments in interface IndexOptimizeTransactionIndexOptimizeTransaction.getOptimizableSegments()public org.apache.lucene.index.IndexWriter getPermanentIndexWriter()
IndexOptimizeTransaction
getPermanentIndexWriter in interface IndexOptimizeTransactionIndexOptimizeTransaction.getPermanentIndexWriter()
public org.apache.lucene.index.IndexWriter getTemporaryIndexWriter()
throws IndexTransactionException
IndexOptimizeTransaction
getTemporaryIndexWriter in interface IndexOptimizeTransactionIndexTransactionExceptionIndexOptimizeTransaction.getTemporaryIndexWriter()public void setOptimizableSegments(File[] optimzableSegments)
IndexOptimizeTransaction
setOptimizableSegments in interface IndexOptimizeTransactionIndexOptimizeTransaction.setOptimizableSegments(java.io.File[])public void setPermanentIndexWriter(org.apache.lucene.index.IndexWriter pw)
IndexOptimizeTransaction
setPermanentIndexWriter in interface IndexOptimizeTransactionIndexOptimizeTransaction.setPermanentIndexWriter(org.apache.lucene.index.IndexWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||