public class

DefaultManagedScheduledJobRegistry

extends Object
implements ManagedScheduledJobRegistry
java.lang.Object
   ↳ com.atlassian.confluence.schedule.managers.DefaultManagedScheduledJobRegistry

Class Overview

Default implementation that manages the static job data (i.e. configured in spring / plugins).

Summary

Public Constructors
DefaultManagedScheduledJobRegistry(Collection<ManagedScheduledJob> standardJobs)
Public Methods
synchronized void addManagedScheduledJob(ManagedScheduledJob job)
Registers a job in the registry.
synchronized ManagedScheduledJob getManagedScheduledJob(ScheduledJobKey key)
Returns a specific registered job in the system.
synchronized Collection<ManagedScheduledJob> getManagedScheduledJobs()
Returns all the registered jobs in the system.
synchronized boolean isManaged(ScheduledJobKey key)
Checks if the specified job is being managed.
synchronized void removeManagedScheduledJob(ManagedScheduledJob job)
Unregisters a job in the registry.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.schedule.managers.ManagedScheduledJobRegistry

Public Constructors

public DefaultManagedScheduledJobRegistry (Collection<ManagedScheduledJob> standardJobs)

Public Methods

public synchronized void addManagedScheduledJob (ManagedScheduledJob job)

Registers a job in the registry.

Parameters
job the job

public synchronized ManagedScheduledJob getManagedScheduledJob (ScheduledJobKey key)

Returns a specific registered job in the system.

Parameters
key the job key.
Returns
  • null if the job is not found.

public synchronized 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.

public synchronized boolean isManaged (ScheduledJobKey key)

Checks if the specified job is being managed.

Parameters
key the job key.
Returns
  • true if current registered

public synchronized void removeManagedScheduledJob (ManagedScheduledJob job)

Unregisters a job in the registry.

Parameters
job the job