Class PrintJobStatusImpl
java.lang.Object
org.mapfish.print.servlet.job.impl.PrintJobStatusImpl
- All Implemented Interfaces:
PrintJobStatus
- Direct Known Subclasses:
PrintJobStatusExtImpl
Represent a print job that has completed. Contains the information about the print job.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapfish.print.servlet.job.PrintJobStatus
PrintJobStatus.Status -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PrintJobStatusImpl(PrintJobEntry entry, long requestCount) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the access information.getAppId()Get the app ID.Get the completion time (as date).Get the completion time (as long).longGet elapsed time.getEntry()Get the entry.getError()Get the error message.Get the reference ID.longGet the request count.Get the result.Get the start time (as date).longGet the start time (as long).Get the status.longGet the estimated waiting time for the job to finish.booleanisDone()is the job done?voidsetCompletionTime(Long completionTime) voidvoidsetRequestCount(long requestCount) voidsetResult(PrintJobResult result) Set the result.voidsetStatus(PrintJobStatus.Status status) voidsetStatusTime(Long statusTime) voidsetWaitingTime(long waitingTime) Set the estimated waiting time for the job to finish (this is a transient value).
-
Constructor Details
-
PrintJobStatusImpl
public PrintJobStatusImpl()Constructor. -
PrintJobStatusImpl
Constructor.- Parameters:
entry- the PrintJobEntry.requestCount- request count
-
-
Method Details
-
getEntry
Description copied from interface:PrintJobStatusGet the entry.- Specified by:
getEntryin interfacePrintJobStatus
-
getCompletionTime
Description copied from interface:PrintJobStatusGet the completion time (as long).- Specified by:
getCompletionTimein interfacePrintJobStatus
-
setCompletionTime
-
getRequestCount
public long getRequestCount()Description copied from interface:PrintJobStatusGet the request count.- Specified by:
getRequestCountin interfacePrintJobStatus
-
setRequestCount
public void setRequestCount(long requestCount) -
getError
Description copied from interface:PrintJobStatusGet the error message.- Specified by:
getErrorin interfacePrintJobStatus
-
setError
-
getStatus
Description copied from interface:PrintJobStatusGet the status.- Specified by:
getStatusin interfacePrintJobStatus
-
setStatus
-
getResult
Description copied from interface:PrintJobStatusGet the result.- Specified by:
getResultin interfacePrintJobStatus
-
setResult
Set the result.- Parameters:
result- The result
-
getReferenceId
Description copied from interface:PrintJobStatusGet the reference ID.- Specified by:
getReferenceIdin interfacePrintJobStatus
-
getStartTime
public long getStartTime()Description copied from interface:PrintJobStatusGet the start time (as long).- Specified by:
getStartTimein interfacePrintJobStatus
-
getAccess
Description copied from interface:PrintJobStatusGet the access information.- Specified by:
getAccessin interfacePrintJobStatus
-
getAppId
Description copied from interface:PrintJobStatusGet the app ID.- Specified by:
getAppIdin interfacePrintJobStatus
-
getStartDate
Description copied from interface:PrintJobStatusGet the start time (as date).- Specified by:
getStartDatein interfacePrintJobStatus
-
getCompletionDate
Description copied from interface:PrintJobStatusGet the completion time (as date).- Specified by:
getCompletionDatein interfacePrintJobStatus
-
getElapsedTime
public long getElapsedTime()Description copied from interface:PrintJobStatusGet elapsed time.- Specified by:
getElapsedTimein interfacePrintJobStatus
-
isDone
public boolean isDone()Description copied from interface:PrintJobStatusis the job done?- Specified by:
isDonein interfacePrintJobStatus
-
getWaitingTime
public long getWaitingTime()Description copied from interface:PrintJobStatusGet the estimated waiting time for the job to finish.- Specified by:
getWaitingTimein interfacePrintJobStatus
-
setWaitingTime
public void setWaitingTime(long waitingTime) Description copied from interface:PrintJobStatusSet the estimated waiting time for the job to finish (this is a transient value).- Specified by:
setWaitingTimein interfacePrintJobStatus- Parameters:
waitingTime- the waiting time
-
getStatusTime
-
setStatusTime
-