public interface IJobStatusStore
extends com.norconex.commons.lang.config.IXMLConfigurable
Modifier and Type | Method and Description |
---|---|
void |
backup(String suiteName,
String jobId,
Date backupDate)
Backups job progress.
|
IJobStatus |
read(String suiteName,
String jobId)
Reads a job progress.
|
void |
remove(String suiteName,
String jobId)
Removes job progress.
|
long |
touch(String suiteName,
String jobId)
Marks the status with the current date so it shows as being active.
|
void |
write(String suiteName,
IJobStatus jobStatus)
Writes a job progress.
|
void write(String suiteName, IJobStatus jobStatus) throws IOException
suiteName
- name space given to the job progressjobStatus
- job progressIOException
- problem serializing job progressIJobStatus read(String suiteName, String jobId) throws IOException
null
is not allowed).suiteName
- name space given to the job progressjobId
- job unique identifierIOException
- problem deserializing job progressvoid remove(String suiteName, String jobId) throws IOException
read(String, String)
method.suiteName
- name space given to the job progressjobId
- unique identifier of job we want to remove statusIOException
- problem removing job progressvoid backup(String suiteName, String jobId, Date backupDate) throws IOException
read(String, String)
method.suiteName
- name space given to the job progressjobId
- unique identifier of job progress we want to backupbackupDate
- date used to timestamp to backupIOException
- problem backing-up job progresslong touch(String suiteName, String jobId) throws IOException
suiteName
- suite namejobId
- job nameIOException
- problem touching the fileCopyright © 2007–2021 Norconex Inc.. All rights reserved.