Interface ManagedScheduledJobRegistry
-
- All Known Implementing Classes:
DefaultManagedScheduledJobRegistry
public interface ManagedScheduledJobRegistryThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddManagedScheduledJob(ManagedScheduledJob job)Registers a job in the registry.ManagedScheduledJobgetManagedScheduledJob(com.atlassian.scheduler.config.JobId jobId)Returns a specific registered job in the system.Collection<ManagedScheduledJob>getManagedScheduledJobs()Returns all the registered jobs in the system.booleanisManaged(com.atlassian.scheduler.config.JobId jobId)Checks if the specified job is being managed.voidremoveManagedScheduledJob(ManagedScheduledJob job)Unregisters a job in the registry.
-
-
-
Method Detail
-
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
ManagedScheduledJob getManagedScheduledJob(com.atlassian.scheduler.config.JobId jobId)
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
void addManagedScheduledJob(ManagedScheduledJob job)
Registers a job in the registry.- Parameters:
job- the job
-
removeManagedScheduledJob
void removeManagedScheduledJob(ManagedScheduledJob job)
Unregisters a job in the registry.- Parameters:
job- the job
-
-