Class Jobs

java.lang.Object
org.basex.core.jobs.Jobs

public final class Jobs extends Object
This class organizes persistent query jobs.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

  • Method Details

    • add

      public void add(QueryJobSpec spec)
      Adds a query job to the list.
      Parameters:
      spec - job info
    • remove

      public void remove(String id)
      Removes all jobs with the specified id from the list.
      Parameters:
      id - job id
    • run

      public void run()
      Schedules all registered jobs.
    • write

      public void write() throws IOException
      Writes jobs to disk.
      Throws:
      IOException - I/O exception
    • toXML

      public FElem toXML()
      Returns an XML representation of all jobs.
      Returns:
      root element