Class IndexRequest
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.indexing.IndexRequest
- All Implemented Interfaces:
IJob
- Direct Known Subclasses:
BinaryContainer,IndexAllProject,IndexBinaryFolder,SaveIndex
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.core.runtime.IPathprotected booleanprotected IndexManagerFields inherited from interface org.aspectj.org.eclipse.jdt.internal.core.search.processing.IJob
CancelIfNotReady, COMPLETE, FAILED, ForceImmediate, WaitUntilReady -
Constructor Summary
ConstructorsConstructorDescriptionIndexRequest(org.eclipse.core.runtime.IPath containerPath, IndexManager manager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAnswer true if the job belongs to a given family (tag)voidcancel()Asks this job to cancel its execution.voidEnsures that this job is ready to run.Returns this job's familyprotected IntegerbooleanAnswers if we need some sleep after index write operations.
-
Field Details
-
isCancelled
protected volatile boolean isCancelled -
containerPath
protected org.eclipse.core.runtime.IPath containerPath -
manager
-
-
Constructor Details
-
IndexRequest
-
-
Method Details
-
belongsTo
-
cancel
-
ensureReadyToRun
public void ensureReadyToRun()Description copied from interface:IJobEnsures that this job is ready to run.- Specified by:
ensureReadyToRunin interfaceIJob
-
getJobFamily
Description copied from interface:IJobReturns this job's family- Specified by:
getJobFamilyin interfaceIJob
-
updatedIndexState
-
waitNeeded
public boolean waitNeeded()Description copied from interface:IJobAnswers if we need some sleep after index write operations. Default implementation returnsfalse.- Specified by:
waitNeededin interfaceIJob- Returns:
- true if the job manager should sleep a bit after this job is done to avoid IO tasks overloading OS (which could cause UI freezes etc).
-