com.atlassian.confluence.schedule.managers
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
 void addManagedScheduledJob(ManagedScheduledJob job)
          Registers a job in the registry.
 ManagedScheduledJob getManagedScheduledJob(ScheduledJobKey key)
          Returns a specific registered job in the system.
 java.util.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.
 

Method Detail

getManagedScheduledJobs

java.util.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(ScheduledJobKey key)
Returns a specific registered job in the system.

Parameters:
key - the job key.
Returns:
null if the job is not found.

isManaged

boolean isManaged(ScheduledJobKey key)
Checks if the specified job is being managed.

Parameters:
key - the job key.
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


Copyright © 2003-2014 Atlassian. All Rights Reserved.