com.atlassian.sal.jira.scheduling
Class JiraPluginScheduler
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JiraPluginScheduler
public JiraPluginScheduler(ServiceManager serviceManager)
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.