public class JobStatus extends GenericResponse
Modifier and Type | Field and Description |
---|---|
protected JobProgress |
progress
Progress
|
protected boolean |
running
Flag whether the job is currently running
|
Constructor and Description |
---|
JobStatus()
Empty constructor
|
JobStatus(String name,
boolean running)
Create an instance with running flag and (automatic) message
|
Modifier and Type | Method and Description |
---|---|
JobProgress |
getProgress()
Get job progress
|
boolean |
isRunning()
True when the job is running, false if not
|
JobStatus |
setProgress(JobProgress progress)
Set job progress
|
JobStatus |
setRunning(boolean running)
Set whether the job is currently running
|
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
protected boolean running
protected JobProgress progress
public JobStatus()
public JobStatus(String name, boolean running)
name
- job namerunning
- running flagpublic boolean isRunning()
public JobStatus setRunning(boolean running)
running
- true for runnin jobpublic JobProgress getProgress()
public JobStatus setProgress(JobProgress progress)
progress
- progressCopyright © 2024 Gentics Software. All rights reserved.