Schnittstelle IJob
- Alle bekannten Implementierungsklassen:
AddJrtToIndex,BinaryContainer,IndexAllProject,IndexBinaryFolder,IndexRequest,PatternSearchJob,SaveIndex,SubTypeSearchJob
public interface IJob
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intstatic final booleanstatic final booleanstatic final intstatic final int -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanAnswer 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.booleanexecute(org.eclipse.core.runtime.IProgressMonitor progress) Execute the current job, answer whether it was successful.Returns this job's familydefault booleanAnswers if we need some sleep after index write operations.
-
Felddetails
-
ForceImmediate
static final int ForceImmediate- Siehe auch:
-
CancelIfNotReady
static final int CancelIfNotReady- Siehe auch:
-
WaitUntilReady
static final int WaitUntilReady- Siehe auch:
-
FAILED
static final boolean FAILED- Siehe auch:
-
COMPLETE
static final boolean COMPLETE- Siehe auch:
-
-
Methodendetails
-
belongsTo
Answer true if the job belongs to a given family (tag) -
cancel
void cancel()Asks this job to cancel its execution. The cancellation can take an undertermined amount of time. -
ensureReadyToRun
void ensureReadyToRun()Ensures that this job is ready to run. -
execute
boolean execute(org.eclipse.core.runtime.IProgressMonitor progress) Execute the current job, answer whether it was successful. -
getJobFamily
String getJobFamily()Returns this job's family -
waitNeeded
default boolean waitNeeded()Answers if we need some sleep after index write operations. Default implementation returnsfalse.- Gibt zurück:
- 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).
-