|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.node.index.AbstractReindexComponent
public abstract class AbstractReindexComponent
Abstract helper for reindexing.
AbstractReindexComponent.reindexImpl(),
AbstractReindexComponent.getIndexerWriteLock(),
AbstractReindexComponent.isShuttingDown()| Nested Class Summary | |
|---|---|
protected static class |
AbstractReindexComponent.InIndex
|
| Field Summary | |
|---|---|
protected FullTextSearchIndexer |
ftsIndexer
the FTS indexer that we will prompt to pick up on any un-indexed text |
protected Indexer |
indexer
the component to index the node hierarchy |
protected NodeDaoService |
nodeDaoService
the component giving direct access to transaction instances |
protected NodeService |
nodeService
the component giving direct access to store instances |
protected SearchService |
searcher
the component providing searches of the indexed nodes |
protected TransactionServiceImpl |
transactionService
provides transactions to atomically index each missed transaction |
| Constructor Summary | |
|---|---|
AbstractReindexComponent()
|
|
| Method Summary | |
|---|---|
protected boolean |
areTxnsInIndex(java.util.List txns)
|
protected java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
getIndexerWriteLock()
Convenience method to get a common write lock. |
protected boolean |
isShuttingDown()
|
protected AbstractReindexComponent.InIndex |
isTxnIdPresentInIndex(long txnId)
Determines if a given transaction is definitely in the index or not. |
void |
reindex()
If this object is currently busy, then it just nothing |
protected abstract void |
reindexImpl()
Perform the actual work. |
protected void |
reindexTransaction(long txnId)
Perform a full reindexing of the given transaction in the context of a completely new transaction. |
void |
setAuthenticationComponent(AuthenticationComponent authenticationComponent)
|
void |
setFtsIndexer(FullTextSearchIndexer ftsIndexer)
|
void |
setIndexer(Indexer indexer)
|
void |
setNodeDaoService(NodeDaoService nodeDaoService)
|
void |
setNodeService(NodeService nodeService)
|
void |
setSearcher(SearchService searcher)
|
void |
setShutdown(boolean shutdown)
Programmatically notify a reindex thread to terminate |
void |
setTransactionService(TransactionServiceImpl transactionService)
Set the low-level transaction component to use |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TransactionServiceImpl transactionService
protected Indexer indexer
protected FullTextSearchIndexer ftsIndexer
protected SearchService searcher
protected NodeService nodeService
protected NodeDaoService nodeDaoService
| Constructor Detail |
|---|
public AbstractReindexComponent()
| Method Detail |
|---|
protected java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock getIndexerWriteLock()
public void setShutdown(boolean shutdown)
shutdown - true to shutdown, false to resetprotected boolean isShuttingDown()
shut downpublic void setAuthenticationComponent(AuthenticationComponent authenticationComponent)
authenticationComponent - ensures that reindexing operates as system userpublic void setTransactionService(TransactionServiceImpl transactionService)
transactionComponent - provide transactions to index each missed transactionpublic void setIndexer(Indexer indexer)
indexer - the indexer that will be indexpublic void setFtsIndexer(FullTextSearchIndexer ftsIndexer)
ftsIndexer - the FTS background indexerpublic void setSearcher(SearchService searcher)
searcher - component providing index searchespublic void setNodeService(NodeService nodeService)
nodeService - provides information about nodes for indexingpublic void setNodeDaoService(NodeDaoService nodeDaoService)
nodeDaoService - provides access to transaction-related queriesprotected abstract void reindexImpl()
public final void reindex()
reindex in interface IndexRecoveryprotected AbstractReindexComponent.InIndex isTxnIdPresentInIndex(long txnId)
txnId - a specific transaction
protected boolean areTxnsInIndex(java.util.List txns)
protected void reindexTransaction(long txnId)
txnId - the transaction identifier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||