Class Task
java.lang.Object
org.jobrunr.server.tasks.Task
- Direct Known Subclasses:
AbstractJobStewardTask, AbstractJobZooKeeperTask
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BackgroundJobServerprotected final JobFilterUtilsprotected final org.slf4j.Loggerprotected TaskRunInfoprotected final StorageProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BackgroundJobServerConfigurationReaderprotected final <T> voidconvertAndProcessJobs(Collection<T> items, Function<T, Job> toJobFunction) protected booleanvoidrun(TaskRunInfo runInfo) This method is not thread-safe and should not be accessed concurrently by different Threads.protected Instantprotected abstract voidrunTask()protected voidsaveAndRunJobFilters(List<Job> jobs)
-
Field Details
-
LOGGER
protected final org.slf4j.Logger LOGGER -
backgroundJobServer
-
storageProvider
-
jobFilterUtils
-
runInfo
-
-
Constructor Details
-
Task
-
-
Method Details
-
run
This method is not thread-safe and should not be accessed concurrently by different Threads.- Parameters:
runInfo- all information related to the current run (like startTime, ...).
-
runTask
protected abstract void runTask() -
convertAndProcessJobs
-
saveAndRunJobFilters
-
backgroundJobServerConfiguration
-
runStartTime
-
pollIntervalInSecondsTimeBoxIsAboutToPass
protected boolean pollIntervalInSecondsTimeBoxIsAboutToPass()
-