public interface JobManager
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(java.lang.String referenceId)
Cancel a job.
|
long |
getAverageTimeSpentPrinting()
Get the average time print jobs take to complete.
|
com.google.common.base.Optional<? extends PrintJobStatus> |
getCompletedPrintJob(java.lang.String referenceId)
Return the completed job object if the job has completed or absent otherwise.
|
int |
getLastPrintCount()
Get the number of prints that finished (either by error or success).
|
int |
getNumberOfRequestsMade()
Get the total number of print requests made.
|
JobStatus |
getStatus(java.lang.String referenceId)
Get the status for a job.
|
boolean |
isDone(java.lang.String referenceId)
Check if the job is done.
|
void |
submit(PrintJob job)
Submit a new job for execution.
|
long |
timeSinceLastStatusCheck(java.lang.String referenceId)
Get the time since a client has last requested the print job.
|
void submit(PrintJob job)
job - the job to run.int getLastPrintCount()
long getAverageTimeSpentPrinting()
int getNumberOfRequestsMade()
long timeSinceLastStatusCheck(java.lang.String referenceId)
referenceId - the id of the printjobboolean isDone(java.lang.String referenceId)
throws NoSuchReferenceException
referenceId - the job to check.NoSuchReferenceExceptioncom.google.common.base.Optional<? extends PrintJobStatus> getCompletedPrintJob(java.lang.String referenceId) throws NoSuchReferenceException
referenceId - the referenceId of the report to lookupNoSuchReferenceExceptionvoid cancel(java.lang.String referenceId)
throws NoSuchReferenceException
referenceId - The referenceId of the job to cancel.NoSuchReferenceExceptionJobStatus getStatus(java.lang.String referenceId) throws NoSuchReferenceException
referenceId - The referenceId of the job to check.NoSuchReferenceException