public class JobDuration extends Object
Constructor and Description |
---|
JobDuration()
Creates a job elapsed time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
long |
getDuration()
Gets the elapsed time in milliseconds between the execution start
and end time.
|
Date |
getEndTime()
Gets the end time.
|
long |
getResumedDuration() |
Date |
getResumedLastActivity() |
Date |
getResumedStartTime() |
Date |
getStartTime()
Gets the start time.
|
long |
getTotalDuration()
Gets the elapsed time in milliseconds between the start date of the
first elapsed time and the end of the last elapsed time.
|
int |
hashCode() |
void |
setEndTime(Date endTime)
Sets the end time.
|
void |
setResumedLastActivity(Date resumedLastActivity) |
void |
setResumedStartTime(Date resumedStartTime) |
void |
setStartTime(Date startTime)
Sets the start time.
|
String |
toString() |
public final Date getEndTime()
public final void setEndTime(Date endTime)
endTime
- end timepublic final Date getStartTime()
public final void setStartTime(Date startTime)
startTime
- start timepublic final long getDuration()
public final long getTotalDuration()
getDuration()
.public Date getResumedStartTime()
public void setResumedStartTime(Date resumedStartTime)
public Date getResumedLastActivity()
public void setResumedLastActivity(Date resumedLastActivity)
public long getResumedDuration()
Copyright © 2007–2021 Norconex Inc.. All rights reserved.