Class DefaultJobManager
java.lang.Object
org.apache.syncope.core.provisioning.java.job.DefaultJobManager
- All Implemented Interfaces:
SyncopeCoreLoader
,JobManager
,Ordered
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ConfParamOps
protected final DomainHolder
<?> protected final ImplementationDAO
protected final JobStatusDAO
protected static final Logger
protected final ReportDAO
protected final SyncopeTaskScheduler
protected final SecurityProperties
protected final TaskDAO
protected final TaskUtilsFactory
Fields inherited from interface org.apache.syncope.core.provisioning.api.job.JobManager
DELEGATE_IMPLEMENTATION, NOTIFICATION_JOB, REPORT_KEY, TASK_KEY, TASK_TYPE
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionDefaultJobManager
(DomainHolder<?> domainHolder, SyncopeTaskScheduler scheduler, JobStatusDAO jobStatusDAO, TaskDAO taskDAO, ReportDAO reportDAO, ImplementationDAO implementationDAO, TaskUtilsFactory taskUtilsFactory, ConfParamOps confParamOps, SecurityProperties securityProperties) -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
boolean
void
Perform init operations on the given domain.protected void
register
(String domain, Report report, OffsetDateTime startAt, String executor, boolean dryRun) protected void
register
(String domain, SchedTask task, OffsetDateTime startAt, String executor, boolean dryRun, Map<String, Object> jobData) void
register
(Report report, OffsetDateTime startAt, String executor, boolean dryRun) void
register
(SchedTask task, OffsetDateTime startAt, String executor, boolean dryRun, Map<String, Object> jobData) protected void
registerJob
(JobExecutionContext context, Class<? extends Job> jobClass, String cronExpression, OffsetDateTime startAt) void
Perform dispose operations on the given domain.void
unregister
(Report report) void
unregister
(Task<?> task) protected void
unregisterJob
(String jobName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.syncope.core.persistence.api.SyncopeCoreLoader
load, unload
-
Field Details
-
LOG
-
domainHolder
-
scheduler
-
jobStatusDAO
-
taskDAO
-
reportDAO
-
implementationDAO
-
taskUtilsFactory
-
confParamOps
-
securityProperties
-
-
Constructor Details
-
DefaultJobManager
public DefaultJobManager(DomainHolder<?> domainHolder, SyncopeTaskScheduler scheduler, JobStatusDAO jobStatusDAO, TaskDAO taskDAO, ReportDAO reportDAO, ImplementationDAO implementationDAO, TaskUtilsFactory taskUtilsFactory, ConfParamOps confParamOps, SecurityProperties securityProperties)
-
-
Method Details
-
isRunning
- Specified by:
isRunning
in interfaceJobManager
-
registerJob
protected void registerJob(JobExecutionContext context, Class<? extends Job> jobClass, String cronExpression, OffsetDateTime startAt) -
register
-
register
public void register(SchedTask task, OffsetDateTime startAt, String executor, boolean dryRun, Map<String, Object> jobData) - Specified by:
register
in interfaceJobManager
-
register
protected void register(String domain, Report report, OffsetDateTime startAt, String executor, boolean dryRun) -
register
- Specified by:
register
in interfaceJobManager
-
unregisterJob
-
unregister
- Specified by:
unregister
in interfaceJobManager
-
unregister
- Specified by:
unregister
in interfaceJobManager
-
getOrder
public int getOrder() -
load
Description copied from interface:SyncopeCoreLoader
Perform init operations on the given domain.- Specified by:
load
in interfaceSyncopeCoreLoader
- Parameters:
domain
- domain to initialize
-
unload
Description copied from interface:SyncopeCoreLoader
Perform dispose operations on the given domain.- Specified by:
unload
in interfaceSyncopeCoreLoader
- Parameters:
domain
- domain to unload
-