Interface ManagedScheduledJobRegistry
- All Known Implementing Classes:
DefaultManagedScheduledJobRegistry
public interface ManagedScheduledJobRegistry
The registry of jobs in the system under management. Only manages the static data of a scheduled job (i.e. configured
in spring / plug-ins).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers a job in the registry.getManagedScheduledJob
(com.atlassian.scheduler.config.JobId jobId) Returns a specific registered job in the system.Returns all the registered jobs in the system.boolean
isManaged
(com.atlassian.scheduler.config.JobId jobId) Checks if the specified job is being managed.void
Unregisters a job in the registry.
-
Method Details
-
getManagedScheduledJobs
Collection<ManagedScheduledJob> getManagedScheduledJobs()Returns all the registered jobs in the system.- Returns:
- the registered jobs in the system. An empty collection if there are no jobs. The collection is immutable.
-
getManagedScheduledJob
Returns a specific registered job in the system.- Parameters:
jobId
- the job ID.- Returns:
- null if the job is not found.
-
isManaged
boolean isManaged(com.atlassian.scheduler.config.JobId jobId) Checks if the specified job is being managed.- Parameters:
jobId
- the job ID.- Returns:
- true if current registered
-
addManagedScheduledJob
Registers a job in the registry.- Parameters:
job
- the job
-
removeManagedScheduledJob
Unregisters a job in the registry.- Parameters:
job
- the job
-