|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.node.index.AbstractReindexComponent
org.alfresco.repo.node.index.IndexTransactionTracker
public class IndexTransactionTracker
Component to check and recover the indexes.
Nested Class Summary | |
---|---|
static interface |
IndexTransactionTracker.IndexTransactionTrackerListener
A callback that can be set to provide logging and other record keeping |
Nested classes/interfaces inherited from class org.alfresco.repo.node.index.AbstractReindexComponent |
---|
AbstractReindexComponent.InIndex, AbstractReindexComponent.ReindexNodeCallback, AbstractReindexComponent.ReindexTerminatedException |
Field Summary |
---|
Fields inherited from class org.alfresco.repo.node.index.AbstractReindexComponent |
---|
ftsIndexer, indexer, nodeDAO, nodeService, searcher, transactionService |
Constructor Summary | |
---|---|
IndexTransactionTracker()
Set the defaults. |
Method Summary | |
---|---|
java.lang.String |
getReindexStatus()
|
protected long |
getStartingTxnCommitTime()
Find a transaction time to start indexing from (inclusive). |
protected void |
reindexImpl()
Perform the actual work. |
protected boolean |
requireTransaction()
Determines if calls to AbstractReindexComponent.reindexImpl() should be wrapped in a transaction or not. |
void |
resetFromTxn(long txnId)
|
void |
setDisableInTransactionIndexing(boolean disableInTransactionIndexing)
Enable or disabled in-transaction indexing. |
void |
setListener(IndexTransactionTracker.IndexTransactionTrackerListener listener)
|
void |
setMaxRecordSetSize(int maxRecordSetSize)
Set the number of transactions to request per query. |
void |
setMaxTransactionsPerLuceneCommit(int maxTransactionsPerLuceneCommit)
Set the number of transactions to process per Lucene write. |
void |
setMaxTxnDurationMinutes(long maxTxnDurationMinutes)
Set the expected maximum duration of transaction supported. |
void |
setNodeIndexer(NodeIndexer nodeIndexer)
|
void |
setReindexLagMs(long reindexLagMs)
Transaction tracking should lag by the average commit time for a transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexTransactionTracker()
Method Detail |
---|
public void setListener(IndexTransactionTracker.IndexTransactionTrackerListener listener)
public void setNodeIndexer(NodeIndexer nodeIndexer)
public void setMaxTxnDurationMinutes(long maxTxnDurationMinutes)
maxTxnDurationMinutes
- the maximum length of time a transaction will take in minutespublic void setReindexLagMs(long reindexLagMs)
reindexLagMs
- the minimum age of a transaction to be considered by
the index transaction trackingpublic void setMaxRecordSetSize(int maxRecordSetSize)
public void setMaxTransactionsPerLuceneCommit(int maxTransactionsPerLuceneCommit)
public void setDisableInTransactionIndexing(boolean disableInTransactionIndexing)
NodeIndexer
is disabled when this component initialises.
protected boolean requireTransaction()
AbstractReindexComponent
AbstractReindexComponent.reindexImpl()
should be wrapped in a transaction or not.
The default is true.
requireTransaction
in class AbstractReindexComponent
public void resetFromTxn(long txnId)
protected void reindexImpl()
AbstractReindexComponent
reindexImpl
in class AbstractReindexComponent
public java.lang.String getReindexStatus()
protected long getStartingTxnCommitTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |