Class DefaultScheduledJobStatusManager
- java.lang.Object
-
- com.atlassian.confluence.schedule.managers.DefaultScheduledJobStatusManager
-
- All Implemented Interfaces:
ScheduledJobStatusManager
public class DefaultScheduledJobStatusManager extends Object implements ScheduledJobStatusManager
Default implementation. Constructs new instance of ScheduledJobStatus, if not provided by the DAO, if configuration exists.
-
-
Constructor Summary
Constructors Constructor Description DefaultScheduledJobStatusManager(ScheduledJobDao scheduledJobDAO, com.atlassian.scheduler.SchedulerService schedulerService, InternalRunDetailsDao internalRunDetailsDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledJobStatus
getScheduledJobStatus(ManagedScheduledJob job)
Retrieves the current status from the backend caches, or reconstructs a new instance if missing from the caches.
-
-
-
Constructor Detail
-
DefaultScheduledJobStatusManager
public DefaultScheduledJobStatusManager(ScheduledJobDao scheduledJobDAO, com.atlassian.scheduler.SchedulerService schedulerService, InternalRunDetailsDao internalRunDetailsDao)
- Parameters:
scheduledJobDAO
- the ScheduledJobDAO beanschedulerService
- the SchedulerService beaninternalRunDetailsDao
- the InternalRunDetailsDao bean- Since:
- 8.0.0
-
-
Method Detail
-
getScheduledJobStatus
public ScheduledJobStatus getScheduledJobStatus(ManagedScheduledJob job)
Description copied from interface:ScheduledJobStatusManager
Retrieves the current status from the backend caches, or reconstructs a new instance if missing from the caches.- Specified by:
getScheduledJobStatus
in interfaceScheduledJobStatusManager
- Returns:
- the current status of the job, or null if not currently managed.
-
-