public class LegacyJobManagerImpl extends java.lang.Object implements LegacyJobManager
| Modifier and Type | Class and Description |
|---|---|
class |
LegacyJobManagerImpl.JobDeleteResource |
| Constructor and Description |
|---|
LegacyJobManagerImpl(com.marklogic.client.DatabaseClient jobClient) |
| Modifier and Type | Method and Description |
|---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic LegacyJobManagerImpl(com.marklogic.client.DatabaseClient jobClient)
public void saveJob(Job job)
LegacyJobManagersaveJob in interface LegacyJobManagerjob - - the job you want to savepublic void saveJob(Job job, com.marklogic.client.Transaction transaction)
LegacyJobManagersaveJob in interface LegacyJobManagerjob - - the job you want to savetransaction - - the transaction that is to be used to write the jobpublic JobDeleteResponse deleteJobs(java.lang.String jobIds)
deleteJobs in interface LegacyJobManagerjobIds - comma-separated list of jobIds to delete.public JobExportResponse exportJobs(java.nio.file.Path exportFilePath, java.lang.String[] jobIds)
LegacyJobManagerexportJobs in interface LegacyJobManagerexportFilePath - specifies where the zip file will be writtenjobIds - a comma-separated list of jobIds; if null, all will be exportedpublic void importJobs(java.nio.file.Path importFilePath)
throws java.io.IOException
LegacyJobManagerimportJobs in interface LegacyJobManagerimportFilePath - specifies where the zip file existsjava.io.IOException - if unable to open or read the target input file