|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The handler puts index management tasks into the task queue of the task queue service
and reads index management tasks from the task queue to execute them.
ITaskQueueHandler is mainly responsible for indexing, reindexing and deltaindexing
of documents. If no TaskQueueService is active the methods are immediately
executed. Otherwise tasks are enqueued in a task queue. The task queue is checked according
to a time intervall, which could be adjusted in the system configuration.
This way, it is possible to execute different tasks on different machines in a distributed
CM scenario.
Internally this interface is also used by particular indexes , when the corresponding methods
are called.
IIndex,
AbstractIndex| Method Summary | |
void |
activateSchedulerEntry(java.lang.String schedulerEntryId)
Activates a newly created scheduler entry for the current system of the task queue reader. |
void |
createTaxonomyHierarchyByCopiing(java.lang.String taxonomyName,
ICollection existingHierarchy,
IClassificationIndex index)
The taxonomy hierarchy is created by copiing an existing hierarchy. |
void |
deindexDocuments(IIndex index,
IRidList deindexRids,
boolean removeClassification)
Deindexes a list of document IDs from an index. |
void |
deltaReindex(IIndex index)
Performs indexing of the documents that are not yet indexed or have been changed since the last crawl. |
void |
executeTask(ITask task)
Runs an index management task of the task queue service. |
void |
indexDocument(IIndex index,
IResource document,
IResourceEvent event)
Indexes a document into an index. |
void |
reindex(IIndex index,
boolean disablePostClearTasks)
Clears the index and starts putting all documents into the index again. |
void |
startDeindexCrawler(IIndex index,
RID startRid)
Runs a deindex crawl as a separate thread. |
void |
startDeindexCrawler(IIndex index,
RID startRid,
IResourceEvent event,
RID eventPreRid,
RID eventNewRid,
java.lang.String crawlerProfileId)
Runs a deindex crawl as a separate thread. |
void |
startDeltaCrawler(IIndex index,
RID startRid)
Runs an delta index crawl as a separate thread. |
void |
startIndexCrawler(IIndex index,
RID startRid,
IResourceEvent event)
Runs an index crawl as a separate thread. |
void |
startTrainingCrawler(java.lang.String taxonomyName,
ICollection taxonomyCollection,
IClassificationIndex index,
boolean isSearchRelevant)
Runs a taxonomy training crawler as a separate thread. |
void |
updateCategoryContents(java.lang.String taxonomyName,
boolean dirtyOnly,
IIndex index,
IResourceContext context,
boolean markCategoriesUpdated)
Starts a process that checks and updates categories of a taxonomy where the query is not in sync with the documents of category. |
| Method Detail |
public void startIndexCrawler(IIndex index,
RID startRid,
IResourceEvent event)
throws WcmException
index - index where the documents have to be indexed intostartRid - start resource of the crawlevent - event that caused the index request; can be nullWcmException - exception raised in failure situation
public void startDeltaCrawler(IIndex index,
RID startRid)
throws WcmException
index - index where the documents have to be indexed intostartRid - start resource of the crawlWcmException - exception raised in failure situation
public void startTrainingCrawler(java.lang.String taxonomyName,
ICollection taxonomyCollection,
IClassificationIndex index,
boolean isSearchRelevant)
throws WcmException
taxonomyName - name of taxonomytaxonomyCollection - start folder for the crawl; represents the taxonomy rootindex - index where the documents have to be indexed intoisSearchRelevant - if true the start folder is attached to the index,
if false the crawl is only used to build the taxonomy.WcmException - exception raised in failure situation
public void createTaxonomyHierarchyByCopiing(java.lang.String taxonomyName,
ICollection existingHierarchy,
IClassificationIndex index)
throws WcmException
taxonomyName - name of taxonomyexistingHierarchy - root folder of the hierarchy to copyindex - classification index where the taxonomy will be created
public void startDeindexCrawler(IIndex index,
RID startRid)
throws WcmException
index - index where the documents have to be deindexed fromstartRid - start resource ID of the crawlWcmException - exception raised in failure situation
public void startDeindexCrawler(IIndex index,
RID startRid,
IResourceEvent event,
RID eventPreRid,
RID eventNewRid,
java.lang.String crawlerProfileId)
throws WcmException
index - index where the documents have to be deindexed fromstartRid - start resource ID of the crawlevent - event that caused the deindex request; can be nulleventPreRid - resource ID of the events resource before an action like rename or move.eventNewRid - current resource ID of the events resourcecrawlerProfileId - crawler profile id of the data source as fallback if the data source is not
available anymore when requesting the crawler profile id after a detach.WcmException - exception raised in failure situation
public void indexDocument(IIndex index,
IResource document,
IResourceEvent event)
throws WcmException
index - index where the documents have to be indexed intodocument - document to indexevent - event that caused the index request; can be nullWcmException - exception raised in failure situation
public void reindex(IIndex index,
boolean disablePostClearTasks)
throws WcmException
index - index to reindexdisablePostClearTasks - if true, the tasks that can be performed by
the index implementation after the index has been cleared are skipped.WcmException - exception raised in failure situation
public void deltaReindex(IIndex index)
throws WcmException
reindex method, this call does not clear the index.WcmException - exception raised in failure situation
public void deindexDocuments(IIndex index,
IRidList deindexRids,
boolean removeClassification)
throws WcmException
index - index where the documents have to be deindexed fromdeindexRids - list of resource IDs to deindexremoveClassification - if true the classification if the documents is deleted,
if false the classification remains.WcmException - exception raised in failure situation
public void activateSchedulerEntry(java.lang.String schedulerEntryId)
throws WcmException
schedulerEntryId - id of the scheduler entryWcmException - exception raised in failure situation
public void updateCategoryContents(java.lang.String taxonomyName,
boolean dirtyOnly,
IIndex index,
IResourceContext context,
boolean markCategoriesUpdated)
throws WcmException
taxonomyName - name of the taxonomy to checkdirtyOnly - if false all categories are checked, if false only categories
that are out of sync (dirty) are updated.index - index where the taxonomy is definedcontext - user contextmarkCategoriesUpdated - if false the updated categories remain dirtyWcmException - exception raised in failure situation
public void executeTask(ITask task)
throws WcmException
task - task queue taskWcmException - exception raised in failure situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||