public class DefaultManagedScheduledJobRegistry extends Object implements ManagedScheduledJobRegistry
Constructor and Description |
---|
DefaultManagedScheduledJobRegistry(ClusterManager clusterManager,
com.atlassian.scheduler.SchedulerService schedulerService,
Collection<ManagedScheduledJob> standardJobs) |
Modifier and Type | Method and Description |
---|---|
void |
addManagedScheduledJob(ManagedScheduledJob job)
Registers a job in the registry.
|
ManagedScheduledJob |
getManagedScheduledJob(ScheduledJobKey key)
Returns a specific registered job in the system.
|
Collection<ManagedScheduledJob> |
getManagedScheduledJobs()
Returns all the registered jobs in the system.
|
boolean |
isManaged(ScheduledJobKey key)
Checks if the specified job is being managed.
|
void |
removeManagedScheduledJob(ManagedScheduledJob job)
Unregisters a job in the registry.
|
public DefaultManagedScheduledJobRegistry(ClusterManager clusterManager, com.atlassian.scheduler.SchedulerService schedulerService, Collection<ManagedScheduledJob> standardJobs)
public Collection<ManagedScheduledJob> getManagedScheduledJobs()
ManagedScheduledJobRegistry
getManagedScheduledJobs
in interface ManagedScheduledJobRegistry
public ManagedScheduledJob getManagedScheduledJob(ScheduledJobKey key)
ManagedScheduledJobRegistry
getManagedScheduledJob
in interface ManagedScheduledJobRegistry
key
- the job key.public boolean isManaged(ScheduledJobKey key)
ManagedScheduledJobRegistry
isManaged
in interface ManagedScheduledJobRegistry
key
- the job key.public void addManagedScheduledJob(ManagedScheduledJob job)
ManagedScheduledJobRegistry
addManagedScheduledJob
in interface ManagedScheduledJobRegistry
job
- the jobpublic void removeManagedScheduledJob(ManagedScheduledJob job)
ManagedScheduledJobRegistry
removeManagedScheduledJob
in interface ManagedScheduledJobRegistry
job
- the jobCopyright © 2003–2017 Atlassian. All rights reserved.