.. java:import:: java.util ArrayList .. java:import:: java.util Collection .. java:import:: java.util HashMap .. java:import:: java.util List .. java:import:: java.util Map .. java:import:: java.util.concurrent CopyOnWriteArrayList .. java:import:: org.caosdb.server.entity EntityInterface Schedule ======== .. java:package:: org.caosdb.server.jobs :noindex: .. java:type:: public class Schedule Keeps track of Jobs. The Schedule class orders jobs by \ :java:ref:`TransactionStage`\ and also assures that jobs are skipped when appropriate and to prevent that jobs run more than once (because sometimes they trigger each other). :author: Timm Fitschen Methods ------- add ^^^ .. java:method:: public ScheduledJob add(Job j) :outertype: Schedule addAll ^^^^^^ .. java:method:: public List addAll(Collection jobs) :outertype: Schedule runJob ^^^^^^ .. java:method:: public void runJob(ScheduledJob scheduledJob) :outertype: Schedule runJob ^^^^^^ .. java:method:: public void runJob(EntityInterface entity, Class jobclass) :outertype: Schedule Run all scheduled Jobs of a given class for the given entity. runJobs ^^^^^^^ .. java:method:: public void runJobs(TransactionStage stage) :outertype: Schedule Run all Jobs from the specified \ :java:ref:`TransactionStage`\ .