Class JobProgress
java.lang.Object
com.gentics.contentnode.rest.resource.impl.internal.JobProgress
- All Implemented Interfaces:
Serializable
REST Model of the Job Progress
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getDone()
Get done totalint
Timestamp, when the job was finishedint
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 deltasetDone
(int done) Set done totalsetFinished
(int finished) Set finish timestampsetStarted
(int started) Set start timestampsetTotal
(int total) Set total number of total
-
Field Details
-
done
protected int doneNumber of done total -
total
protected int totalNumber of total total -
started
protected int startedTimestamp, when the job was started -
finished
protected int finishedTimestamp, when the job was finished
-
-
Constructor Details
-
JobProgress
public JobProgress()
-
-
Method Details
-
getDone
public int getDone()Get done total- Returns:
- done total
-
setDone
Set done total- Parameters:
done
- done total- Returns:
- fluent API
-
getTotal
public int getTotal()Get total number of total- Returns:
- total total
-
setTotal
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
Set start timestamp- Parameters:
started
- start timestamp- Returns:
- fluent API
-
getFinished
public int getFinished()Timestamp, when the job was finished- Returns:
- finish timestamp
-
setFinished
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
-