com.atlassian.confluence.schedule.managers
Class DefaultManagedScheduledJobRegistry

java.lang.Object
  extended by com.atlassian.confluence.schedule.managers.DefaultManagedScheduledJobRegistry
All Implemented Interfaces:
ManagedScheduledJobRegistry

public class DefaultManagedScheduledJobRegistry
extends java.lang.Object
implements ManagedScheduledJobRegistry

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


Constructor Summary
DefaultManagedScheduledJobRegistry(java.util.Collection<ManagedScheduledJob> standardJobs)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultManagedScheduledJobRegistry

public DefaultManagedScheduledJobRegistry(java.util.Collection<ManagedScheduledJob> standardJobs)
Method Detail

getManagedScheduledJobs

public java.util.Collection<ManagedScheduledJob> getManagedScheduledJobs()
Description copied from interface: ManagedScheduledJobRegistry
Returns all the registered jobs in the system.

Specified by:
getManagedScheduledJobs in interface ManagedScheduledJobRegistry
Returns:
the registered jobs in the system. An empty collection if there are no jobs. The collection is immutable.

getManagedScheduledJob

public ManagedScheduledJob getManagedScheduledJob(ScheduledJobKey key)
Description copied from interface: ManagedScheduledJobRegistry
Returns a specific registered job in the system.

Specified by:
getManagedScheduledJob in interface ManagedScheduledJobRegistry
Parameters:
key - the job key.
Returns:
null if the job is not found.

isManaged

public boolean isManaged(ScheduledJobKey key)
Description copied from interface: ManagedScheduledJobRegistry
Checks if the specified job is being managed.

Specified by:
isManaged in interface ManagedScheduledJobRegistry
Parameters:
key - the job key.
Returns:
true if current registered

addManagedScheduledJob

public void addManagedScheduledJob(ManagedScheduledJob job)
Description copied from interface: ManagedScheduledJobRegistry
Registers a job in the registry.

Specified by:
addManagedScheduledJob in interface ManagedScheduledJobRegistry
Parameters:
job - the job

removeManagedScheduledJob

public void removeManagedScheduledJob(ManagedScheduledJob job)
Description copied from interface: ManagedScheduledJobRegistry
Unregisters a job in the registry.

Specified by:
removeManagedScheduledJob in interface ManagedScheduledJobRegistry
Parameters:
job - the job


Copyright © 2003-2013 Atlassian. All Rights Reserved.