|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.progress.JobElapsedTime
public class JobElapsedTime
Holds time-related information about a job execution.
Constructor Summary | |
---|---|
JobElapsedTime()
Creates a job elapsed time. |
|
JobElapsedTime(Date startTime,
Date endTime,
Date lastActivity)
Creates a job elapsed time, initialised. |
Method Summary | |
---|---|
long |
getElapsedTime()
Gets the elapsed time in milliseconds between the execution start and end time. |
String |
getElapsedTimeAsString()
Gets the elapsed time as a string, in a human readable format. |
Date |
getEndTime()
Gets the end time. |
Date |
getLastActivity()
Gets the last activity. |
Date |
getStartTime()
Gets the start time. |
void |
setEndTime(Date endTime)
Sets the end time. |
void |
setLastActivity(Date lastActivity)
Sets the last activity. |
void |
setStartTime(Date startTime)
Sets the start time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobElapsedTime()
public JobElapsedTime(Date startTime, Date endTime, Date lastActivity)
Method Detail |
---|
public final Date getEndTime()
public final void setEndTime(Date endTime)
endTime
- public final Date getStartTime()
public final void setStartTime(Date startTime)
startTime
- public final Date getLastActivity()
public final void setLastActivity(Date lastActivity)
lastActivity
- last activitypublic final long getElapsedTime()
public final String getElapsedTimeAsString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |