com.atlassian.sal.jira.scheduling
Class JiraPluginScheduler

java.lang.Object
  extended by com.atlassian.sal.jira.scheduling.JiraPluginScheduler
All Implemented Interfaces:
com.atlassian.sal.api.scheduling.PluginScheduler

public class JiraPluginScheduler
extends Object
implements com.atlassian.sal.api.scheduling.PluginScheduler


Field Summary
static String INITIALLY_FIRED
           
static String PLUGIN_JOB_NAME
           
static String REPEAT_INTERVAL
           
 
Constructor Summary
JiraPluginScheduler(ServiceManager serviceManager)
           
 
Method Summary
protected  void reconfigureAfterFirstFire(String name)
          Reconfigure the job by:- - set the repeat interval to the one stored under REPEAT_INTERVAL key.
protected  void removeServicesByName(String name)
           
 void scheduleJob(String name, Class<? extends com.atlassian.sal.api.scheduling.PluginJob> job, Map<String,Object> jobDataMap, Date startTime, long repeatInterval)
           
 void unscheduleJob(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_JOB_NAME

public static final String PLUGIN_JOB_NAME
See Also:
Constant Field Values

REPEAT_INTERVAL

public static final String REPEAT_INTERVAL
See Also:
Constant Field Values

INITIALLY_FIRED

public static final String INITIALLY_FIRED
See Also:
Constant Field Values
Constructor Detail

JiraPluginScheduler

public JiraPluginScheduler(ServiceManager serviceManager)
Method Detail

scheduleJob

public void scheduleJob(String name,
                        Class<? extends com.atlassian.sal.api.scheduling.PluginJob> job,
                        Map<String,Object> jobDataMap,
                        Date startTime,
                        long repeatInterval)
Specified by:
scheduleJob in interface com.atlassian.sal.api.scheduling.PluginScheduler

unscheduleJob

public void unscheduleJob(String name)
Specified by:
unscheduleJob in interface com.atlassian.sal.api.scheduling.PluginScheduler

reconfigureAfterFirstFire

protected void reconfigureAfterFirstFire(String name)
Reconfigure the job by:- - set the repeat interval to the one stored under REPEAT_INTERVAL key. - set INITIALLY_FIRED to true.

Parameters:
name - jobName.

removeServicesByName

protected void removeServicesByName(String name)


Copyright © 2002-2012 Atlassian. All Rights Reserved.