Class JobStatus
java.lang.Object
com.gentics.contentnode.rest.model.response.scheduler.JobStatus
Model of the status of a scheduler job
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getEnd()
Timestamp of the job endint
getId()
Job IDgetName()
Job Nameint
Return value of the job executionint
getStart()
Timestamp of the job startboolean
isActive()
True, when the job is currently active (eligible for execution)setActive
(boolean active) Set active flagsetEnd
(int end) Set end timestampsetId
(int id) Set the Job IDSet the job namesetReturnValue
(int returnValue) Set return valuesetStart
(int start) Set start timestamp
-
Field Details
-
id
protected int id -
start
protected int start -
end
protected int end -
returnValue
protected int returnValue -
name
-
active
protected boolean active
-
-
Constructor Details
-
JobStatus
public JobStatus()
-
-
Method Details
-
getId
public int getId()Job ID- Returns:
- ID
-
setId
Set the Job ID- Parameters:
id
- ID- Returns:
- fluent API
-
getStart
public int getStart()Timestamp of the job start- Returns:
- timestamp
-
setStart
Set start timestamp- Parameters:
start
- timestamp- Returns:
- fluent API
-
getEnd
public int getEnd()Timestamp of the job end- Returns:
- timestamp
-
setEnd
Set end timestamp- Parameters:
end
- timestamp- Returns:
- fluent API
-
getReturnValue
public int getReturnValue()Return value of the job execution- Returns:
- return value
-
setReturnValue
Set return value- Parameters:
returnValue
- return value- Returns:
- fluent API
-
getName
Job Name- Returns:
- name
-
setName
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
Set active flag- Parameters:
active
- flag- Returns:
- fluent API
-