public class JobProgress extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
done
Number of done total
|
protected int |
finished
Timestamp, when the job was finished
|
protected int |
started
Timestamp, when the job was started
|
protected int |
total
Number of total total
|
Constructor and Description |
---|
JobProgress() |
Modifier and Type | Method and Description |
---|---|
int |
getDone()
Get done total
|
int |
getFinished()
Timestamp, when the job was finished
|
int |
getStarted()
Timestamp, when the job was started
|
int |
getTotal()
Get total number of total
|
void |
incDone()
Increase done counter by 1
|
void |
incDone(int delta)
Increase done counter by delta
|
JobProgress |
setDone(int done)
Set done total
|
JobProgress |
setFinished(int finished)
Set finish timestamp
|
JobProgress |
setStarted(int started)
Set start timestamp
|
JobProgress |
setTotal(int total)
Set total number of total
|
protected int done
protected int total
protected int started
protected int finished
public int getDone()
public JobProgress setDone(int done)
done
- done totalpublic int getTotal()
public JobProgress setTotal(int total)
total
- total totalpublic int getStarted()
public JobProgress setStarted(int started)
started
- start timestamppublic int getFinished()
public JobProgress setFinished(int finished)
finished
- timestamppublic void incDone()
public void incDone(int delta)
delta
- deltaCopyright © 2024 Gentics Software. All rights reserved.