Class JobStatus
- java.lang.Object
-
- com.gentics.contentnode.rest.model.response.scheduler.JobStatus
-
public class JobStatus extends Object
Model of the status of a scheduler job
-
-
Constructor Summary
Constructors Constructor Description JobStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEnd()
Timestamp of the job endint
getId()
Job IDString
getName()
Job Nameint
getReturnValue()
Return value of the job executionint
getStart()
Timestamp of the job startboolean
isActive()
True, when the job is currently active (eligible for execution)JobStatus
setActive(boolean active)
Set active flagJobStatus
setEnd(int end)
Set end timestampJobStatus
setId(int id)
Set the Job IDJobStatus
setName(String name)
Set the job nameJobStatus
setReturnValue(int returnValue)
Set return valueJobStatus
setStart(int start)
Set start timestamp
-
-
-
Field Detail
-
id
protected int id
-
start
protected int start
-
end
protected int end
-
returnValue
protected int returnValue
-
name
protected String name
-
active
protected boolean active
-
-
Method Detail
-
getId
public int getId()
Job ID- Returns:
- ID
-
setId
public JobStatus setId(int id)
Set the Job ID- Parameters:
id
- ID- Returns:
- fluent API
-
getStart
public int getStart()
Timestamp of the job start- Returns:
- timestamp
-
setStart
public JobStatus setStart(int start)
Set start timestamp- Parameters:
start
- timestamp- Returns:
- fluent API
-
getEnd
public int getEnd()
Timestamp of the job end- Returns:
- timestamp
-
setEnd
public JobStatus setEnd(int end)
Set end timestamp- Parameters:
end
- timestamp- Returns:
- fluent API
-
getReturnValue
public int getReturnValue()
Return value of the job execution- Returns:
- return value
-
setReturnValue
public JobStatus setReturnValue(int returnValue)
Set return value- Parameters:
returnValue
- return value- Returns:
- fluent API
-
getName
public String getName()
Job Name- Returns:
- name
-
setName
public JobStatus setName(String name)
Set the job name- Parameters:
name
- name- Returns:
- fluent API
-
isActive
public boolean isActive()
True, when the job is currently active (eligible for execution)- Returns:
- active flag
-
setActive
public JobStatus setActive(boolean active)
Set active flag- Parameters:
active
- flag- Returns:
- fluent API
-
-