org.eclipse.mylar.internal.tasks.ui
Class ScheduledTaskListSynchJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by org.eclipse.mylar.internal.tasks.ui.ScheduledTaskListSynchJob
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable

public class ScheduledTaskListSynchJob
extends org.eclipse.core.runtime.jobs.Job

Author:
Rob Elves

Field Summary
private static long count
           
private static java.lang.String JOB_NAME
           
private static java.lang.String LABEL_TASK
           
private  java.util.List<TaskRepository> repositories
           
private  long scheduleDelay
           
private  TaskList taskList
           
private  TaskListManager taskListManager
           
private static int UPDATE_ATTRIBUTES_FREQUENCY
           
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
manager
 
Constructor Summary
ScheduledTaskListSynchJob(long schedule, TaskListManager taskListManager)
           
ScheduledTaskListSynchJob(TaskListManager taskListManager)
           
 
Method Summary
static long getCount()
          for testing purposes
 long getScheduleDelay()
           
static void resetCount()
          for testing
 org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void setRepositories(java.util.List<TaskRepository> repositories)
           
 void setSchedule(long schedule)
           
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, wakeUp, wakeUp
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo, toString
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

UPDATE_ATTRIBUTES_FREQUENCY

private static final int UPDATE_ATTRIBUTES_FREQUENCY
See Also:
Constant Field Values

LABEL_TASK

private static final java.lang.String LABEL_TASK
See Also:
Constant Field Values

JOB_NAME

private static final java.lang.String JOB_NAME
See Also:
Constant Field Values

scheduleDelay

private long scheduleDelay

taskList

private TaskList taskList

count

private static long count

taskListManager

private TaskListManager taskListManager

repositories

private java.util.List<TaskRepository> repositories
Constructor Detail

ScheduledTaskListSynchJob

public ScheduledTaskListSynchJob(long schedule,
                                 TaskListManager taskListManager)

ScheduledTaskListSynchJob

public ScheduledTaskListSynchJob(TaskListManager taskListManager)
Method Detail

run

public org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
run in class org.eclipse.core.runtime.jobs.Job

setSchedule

public void setSchedule(long schedule)

setRepositories

public void setRepositories(java.util.List<TaskRepository> repositories)

getCount

public static long getCount()
for testing purposes


resetCount

public static void resetCount()
for testing


getScheduleDelay

public long getScheduleDelay()