Class JobProgress
- java.lang.Object
-
- com.gentics.contentnode.rest.resource.impl.internal.JobProgress
-
- All Implemented Interfaces:
Serializable
public class JobProgress extends Object implements Serializable
REST Model of the Job Progress- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JobProgress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDone()
Get done totalint
getFinished()
Timestamp, when the job was finishedint
getStarted()
Timestamp, when the job was startedint
getTotal()
Get total number of totalvoid
incDone()
Increase done counter by 1void
incDone(int delta)
Increase done counter by deltaJobProgress
setDone(int done)
Set done totalJobProgress
setFinished(int finished)
Set finish timestampJobProgress
setStarted(int started)
Set start timestampJobProgress
setTotal(int total)
Set total number of total
-
-
-
Method Detail
-
getDone
public int getDone()
Get done total- Returns:
- done total
-
setDone
public JobProgress setDone(int done)
Set done total- Parameters:
done
- done total- Returns:
- fluent API
-
getTotal
public int getTotal()
Get total number of total- Returns:
- total total
-
setTotal
public JobProgress setTotal(int total)
Set total number of total- Parameters:
total
- total total- Returns:
- fluent API
-
getStarted
public int getStarted()
Timestamp, when the job was started- Returns:
- start timestamp
-
setStarted
public JobProgress setStarted(int started)
Set start timestamp- Parameters:
started
- start timestamp- Returns:
- fluent API
-
getFinished
public int getFinished()
Timestamp, when the job was finished- Returns:
- finish timestamp
-
setFinished
public JobProgress setFinished(int finished)
Set finish timestamp- Parameters:
finished
- timestamp- Returns:
- fluent API
-
incDone
public void incDone()
Increase done counter by 1
-
incDone
public void incDone(int delta)
Increase done counter by delta- Parameters:
delta
- delta
-
-