Package org.jobrunr.server.runner
Class AbstractBackgroundJobRunner.BackgroundJobWorker
- java.lang.Object
-
- org.jobrunr.server.runner.AbstractBackgroundJobRunner.BackgroundJobWorker
-
- Direct Known Subclasses:
BackgroundJobWithIocRunner.BackgroundForIoCJobLambdaWorker
,BackgroundJobWithoutIocRunner.BackgroundForJobLambdaWorker
,BackgroundStaticFieldJobWithoutIocRunner.StaticFieldBackgroundJobWorker
,BackgroundStaticJobWithoutIocRunner.StaticBackgroundJobWorker
- Enclosing class:
- AbstractBackgroundJobRunner
protected static class AbstractBackgroundJobRunner.BackgroundJobWorker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Job
job
protected JobDetails
jobDetails
-
Constructor Summary
Constructors Constructor Description BackgroundJobWorker(Job job)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.reflect.Method
getJobMethodToPerform(java.lang.Class<?> jobToPerformClass)
protected java.lang.Object
getJobToPerform(java.lang.Class<?> jobToPerformClass)
protected java.lang.Class<?>
getJobToPerformClass()
protected RunnerJobContext
getRunnerJobContext()
protected void
invokeJobMethod(java.lang.Object jobToPerform, java.lang.reflect.Method jobMethodToPerform)
void
run()
-
-
-
Field Detail
-
job
protected final Job job
-
jobDetails
protected final JobDetails jobDetails
-
-
Constructor Detail
-
BackgroundJobWorker
public BackgroundJobWorker(Job job)
-
-
Method Detail
-
run
public void run() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getJobToPerformClass
protected java.lang.Class<?> getJobToPerformClass()
-
getJobToPerform
protected java.lang.Object getJobToPerform(java.lang.Class<?> jobToPerformClass)
-
getJobMethodToPerform
protected java.lang.reflect.Method getJobMethodToPerform(java.lang.Class<?> jobToPerformClass)
-
invokeJobMethod
protected void invokeJobMethod(java.lang.Object jobToPerform, java.lang.reflect.Method jobMethodToPerform) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRunnerJobContext
protected RunnerJobContext getRunnerJobContext()
-
-