Package org.basex.core.jobs
Class Jobs
java.lang.Object
org.basex.core.jobs.Jobs
This class organizes persistent query jobs.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(QueryJobSpec spec) Adds a query job to the list.voidRemoves all jobs with the specified id from the list.voidrun()Schedules all registered jobs.toXML()Returns an XML representation of all jobs.voidwrite()Writes jobs to disk.
-
Constructor Details
-
Jobs
Constructor.- Parameters:
context- database context- Throws:
IOException- I/O exception
-
-
Method Details
-
add
Adds a query job to the list.- Parameters:
spec- job info
-
remove
Removes all jobs with the specified id from the list.- Parameters:
id- job id
-
run
public void run()Schedules all registered jobs. -
write
Writes jobs to disk.- Throws:
IOException- I/O exception
-
toXML
Returns an XML representation of all jobs.- Returns:
- root element
-