Class PublishInfoResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.admin.PublishInfoResponse
- All Implemented Interfaces:
Serializable
Response containing information about the current or last publish process
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected ObjectCountprotected ObjectCountprotected ObjectCountprotected Booleanprotected ObjectCountprotected Stringprotected intprotected intprotected intprotected intprotected booleanprotected Stringprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintEstimated remaining duration in seconds.getFiles()File countsFolder countsgetForms()Form countsFlag to mark if the previous publish process failed.getPages()Page countsgetPhase()Name of the current publish process phaseintProgress in percentintTotal number of work items of the current publish processintNumber of work items donebooleanisFailed()Flag to mark failed publish processbooleanTrue when the publish process is currently runningvoidsetEstimatedDuration(int estimatedDuration) Set ETAvoidsetFailed(boolean failed) Set failed flagvoidsetFiles(ObjectCount files) Set file countsvoidsetFolders(ObjectCount folders) Set folder countsvoidsetForms(ObjectCount forms) Form countsvoidsetLastFailed(Boolean lastFailed) Set failed flag for the previous publish process.voidsetPages(ObjectCount pages) Page countsvoidSet name of current publish process phasevoidsetProgress(int progress) Set progress in percentvoidsetRunning(boolean running) Set running flagvoidsetTotalWork(int totalWork) Set total work itemsvoidsetTotalWorkDone(int totalWorkDone) Get number of work items doneMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
failed
protected boolean failed -
lastFailed
-
status
-
progress
protected int progress -
estimatedDuration
protected int estimatedDuration -
running
protected boolean running -
totalWork
protected int totalWork -
totalWorkDone
protected int totalWorkDone -
phase
-
phaseNumber
protected int phaseNumber -
phaseCount
protected int phaseCount -
phaseETA
protected int phaseETA -
files
-
folders
-
pages
-
forms
-
-
Constructor Details
-
PublishInfoResponse
public PublishInfoResponse()
-
-
Method Details
-
isFailed
public boolean isFailed()Flag to mark failed publish process- Returns:
- true if publish process failed
-
setFailed
public void setFailed(boolean failed) Set failed flag- Parameters:
failed- flag
-
getLastFailed
Flag to mark if the previous publish process failed.- Returns:
- true if the previous publish process failed, false if it was successful, and null if the is no previous publish process
-
setLastFailed
Set failed flag for the previous publish process.- Parameters:
lastFailed- flag
-
getProgress
public int getProgress()Progress in percent- Returns:
- progress
-
setProgress
public void setProgress(int progress) Set progress in percent- Parameters:
progress- progress
-
getEstimatedDuration
public int getEstimatedDuration()Estimated remaining duration in seconds.- Returns:
- ETA in seconds
-
setEstimatedDuration
public void setEstimatedDuration(int estimatedDuration) Set ETA- Parameters:
estimatedDuration- ETA in seconds
-
isRunning
public boolean isRunning()True when the publish process is currently running- Returns:
- true for running
-
setRunning
public void setRunning(boolean running) Set running flag- Parameters:
running- flag
-
getTotalWork
public int getTotalWork()Total number of work items of the current publish process- Returns:
- total work
-
setTotalWork
public void setTotalWork(int totalWork) Set total work items- Parameters:
totalWork- items
-
getTotalWorkDone
public int getTotalWorkDone()Number of work items done- Returns:
- work done
-
setTotalWorkDone
public void setTotalWorkDone(int totalWorkDone) Get number of work items done- Parameters:
totalWorkDone- done
-
getPhase
Name of the current publish process phase- Returns:
- phase name
-
setPhase
Set name of current publish process phase- Parameters:
phase- name
-
getFiles
File counts- Returns:
- file counts
-
setFiles
Set file counts- Parameters:
files- founts
-
getFolders
Folder counts- Returns:
- folder counts
-
setFolders
Set folder counts- Parameters:
folders- countes
-
getPages
Page counts- Returns:
- page counts
-
setPages
Page counts- Parameters:
pages- counts
-
getForms
Form counts- Returns:
- form counts
-
setForms
Form counts- Parameters:
forms- counts
-