public interface LegacyJobManager
| Modifier and Type | Method and Description |
|---|---|
static LegacyJobManager |
create(com.marklogic.client.DatabaseClient jobClient)
Creates and returns a LegacyJobManager object
|
JobDeleteResponse |
deleteJobs(java.lang.String jobIds) |
JobExportResponse |
exportJobs(java.nio.file.Path exportFilePath,
java.lang.String[] jobIds)
Export Job documents and their associated Trace documents to a zip file.
|
void |
importJobs(java.nio.file.Path importFilePath)
Import Job documents and their associated Trace documents from a zip file.
|
void |
saveJob(Job job)
Saves the job to the database
|
void |
saveJob(Job job,
com.marklogic.client.Transaction transaction)
Saves the job to the database
|
static LegacyJobManager create(com.marklogic.client.DatabaseClient jobClient)
jobClient - the database client that is used to connect to the jobs databasevoid saveJob(Job job)
job - - the job you want to savevoid saveJob(Job job, com.marklogic.client.Transaction transaction)
job - - the job you want to savetransaction - - the transaction that is to be used to write the jobJobDeleteResponse deleteJobs(java.lang.String jobIds)
jobIds - comma-separated list of jobIds to delete.JobExportResponse exportJobs(java.nio.file.Path exportFilePath, java.lang.String[] jobIds)
exportFilePath - specifies where the zip file will be writtenjobIds - a comma-separated list of jobIds; if null, all will be exportedvoid importJobs(java.nio.file.Path importFilePath)
throws java.io.IOException
importFilePath - specifies where the zip file existsjava.io.IOException - if unable to open or read the target input file