Package org.xwiki.filemanager.job
Class PackJobStatus
java.lang.Object
org.xwiki.job.AbstractJobStatus<PackRequest>
org.xwiki.filemanager.job.PackJobStatus
- All Implemented Interfaces:
org.xwiki.job.event.status.CancelableJobStatus,org.xwiki.job.event.status.JobStatus
The status of a job that executes a
PackRequest.- Since:
- 2.0M2
- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xwiki.job.event.status.JobStatus
org.xwiki.job.event.status.JobStatus.State -
Constructor Summary
ConstructorsConstructorDescriptionPackJobStatus(String jobType, PackRequest request, org.xwiki.job.event.status.JobStatus parentJobStatus, org.xwiki.observation.ObservationManager observationManager, org.xwiki.logging.LoggerManager loggerManager) -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidsetBytesWritten(long bytesWritten) Sets the number of bytes written so far in the output ZIP file.voidsetDownloadURL(String downloadURL) Sets the URL used to download the output ZIP file.voidsetOutputFileSize(long outputFileSize) Sets the actual size (in bytes) of the output file, after the ZIP compression.Methods inherited from class org.xwiki.job.AbstractJobStatus
answered, ask, ask, cancel, getEndDate, getError, getJobType, getLog, getLog, getLoggerTail, getLogTail, getParentJobStatus, getProgress, getQuestion, getQuestionTimeLeft, getRequest, getStartDate, getState, ignoreLogs, isCancelable, isCanceled, isIsolated, isSerialized, isSubJob, setCancelable, setEndDate, setError, setIsolated, setLoggerTail, setParentJobStatus, setStartDate, setState, startListening, stopListening
-
Constructor Details
-
PackJobStatus
public PackJobStatus(String jobType, PackRequest request, org.xwiki.job.event.status.JobStatus parentJobStatus, org.xwiki.observation.ObservationManager observationManager, org.xwiki.logging.LoggerManager loggerManager) - Parameters:
jobType- the type of the jobrequest- the request provided when started the jobparentJobStatus- the status of the parent job (i.e. the status of the job that started this one); passnullif this job hasn't been started by another job (i.e. if this is not a sub-job)observationManager- the observation manager componentloggerManager- the logger manager component
-
-
Method Details
-
getBytesWritten
public long getBytesWritten()- Returns:
- the number of bytes written so far in the output ZIP file
-
setBytesWritten
public void setBytesWritten(long bytesWritten) Sets the number of bytes written so far in the output ZIP file.- Parameters:
bytesWritten- the number of bytes written so far
-
getOutputFileSize
public long getOutputFileSize()- Returns:
- the actual size (in bytes) of the output file, after the ZIP compression
-
setOutputFileSize
public void setOutputFileSize(long outputFileSize) Sets the actual size (in bytes) of the output file, after the ZIP compression.- Parameters:
outputFileSize- the size, in bytes, of the output ZIP file
-
getDownloadURL
- Returns:
- the URL used to download the output ZIP file
-
setDownloadURL
Sets the URL used to download the output ZIP file.- Parameters:
downloadURL- the URL used to download the output ZIP file
-