1 11 package org.eclipse.core.runtime.jobs; 12 13 import org.eclipse.core.runtime.IProgressMonitor; 14 import org.eclipse.core.runtime.OperationCanceledException; 15 16 40 public interface IJobManager { 41 48 public static final String PROP_USE_DAEMON_THREADS = "eclipse.jobs.daemon"; 50 58 public void addJobChangeListener(IJobChangeListener listener); 59 60 100 public void beginRule(ISchedulingRule rule, IProgressMonitor monitor); 101 102 111 public void cancel(Object family); 112 113 143 public IProgressMonitor createProgressGroup(); 144 145 151 public Job currentJob(); 152 153 168 public void endRule(ISchedulingRule rule); 169 170 178 public Job[] find(Object family); 179 180 188 public boolean isIdle(); 189 190 218 public void join(Object family, IProgressMonitor monitor) throws InterruptedException , OperationCanceledException; 219 220 227 public ILock newLock(); 228 229 237 public void removeJobChangeListener(IJobChangeListener listener); 238 239 255 public void resume(ISchedulingRule rule); 256 257 268 public void resume(); 269 270 279 public void setLockListener(LockListener listener); 280 281 292 public void setProgressProvider(ProgressProvider provider); 293 294 315 public void suspend(); 316 317 353 public void suspend(ISchedulingRule rule, IProgressMonitor monitor); 354 355 367 public void sleep(Object family); 368 369 387 public void transferRule(ISchedulingRule rule, Thread destinationThread); 388 389 396 public void wakeUp(Object family); 397 } 398 | Popular Tags |