Package org.mapfish.print.servlet.job
Interface JobManager
- All Known Implementing Classes:
ThreadPoolJobManager
public interface JobManager
Manages and Executes Print Jobs.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel a job.Instant at which a job was executed by this manager.Get the status for a job.void
submit
(PrintJobEntry entry) Submit a new job for execution.
-
Method Details
-
submit
Submit a new job for execution.- Parameters:
entry
- the job to run.
-
cancel
Cancel a job.- Parameters:
referenceId
- The referenceId of the job to cancel.- Throws:
NoSuchReferenceException
- When trying to cancel an unknown referenceId
-
getStatus
Get the status for a job.- Parameters:
referenceId
- The referenceId of the job to check.- Throws:
NoSuchReferenceException
- When requesting status of an unknown referenceId.
-
getLastExecutedJobTimestamp
Date getLastExecutedJobTimestamp()Instant at which a job was executed by this manager.- Returns:
- the timestamp as a Date.
-