Class JobStatus
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.resource.impl.internal.JobStatus
- All Implemented Interfaces:
Serializable
Response containing the job status for a background job
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected JobProgress
Progressprotected boolean
Flag whether the job is currently running -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet job progressboolean
True when the job is running, false if notsetProgress
(JobProgress progress) Set job progresssetRunning
(boolean running) Set whether the job is currently runningMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
running
protected boolean runningFlag whether the job is currently running -
progress
Progress
-
-
Constructor Details
-
JobStatus
public JobStatus()Empty constructor -
JobStatus
Create an instance with running flag and (automatic) message- Parameters:
name
- job namerunning
- running flag
-
-
Method Details
-
isRunning
public boolean isRunning()True when the job is running, false if not- Returns:
- true for running
-
setRunning
Set whether the job is currently running- Parameters:
running
- true for runnin job- Returns:
- fluent API
-
getProgress
Get job progress- Returns:
- progress
-
setProgress
Set job progress- Parameters:
progress
- progress- Returns:
- fluent API
-