com.atlassian.sal.jira.scheduling
Class JiraPluginScheduler

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

public class JiraPluginScheduler
extends Object
implements LifecycleAwarePluginScheduler


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 shutdown()
           
 void standby()
           
 void start()
           
 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

shutdown

public void shutdown()
Specified by:
shutdown in interface PluginSchedulerLifecycle

standby

public void standby()
Specified by:
standby in interface PluginSchedulerLifecycle

start

public void start()
Specified by:
start in interface PluginSchedulerLifecycle

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-2013 Atlassian. All Rights Reserved.