|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.service.threadpool.RunStats
Class implementing the run statistics interface and some additoinal helper methods.
| Field Summary | |
(package private) long |
end
The end time in ms |
(package private) java.lang.Exception |
exception
The exception (if occurred) |
(package private) java.lang.Object |
result
The run result. |
(package private) long |
start
The start time in ms |
| Constructor Summary | |
RunStats()
Creates a new run stats object. |
|
| Method Summary | |
void |
end(java.lang.Exception e)
Finishing the run stats for a unsuccessful execution. |
void |
end(java.lang.Object result)
Finishing the run stats for a successful execution. |
long |
getEnd()
Return the end time in ms. |
java.lang.Exception |
getException()
Return the exception (if any). |
java.lang.Object |
getResult()
Return the result. |
long |
getStart()
Return the start time in ms. |
long |
getTime()
Return the execution time in ms. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
long start
long end
java.lang.Object result
java.lang.Exception exception
| Constructor Detail |
public RunStats()
| Method Detail |
public void end(java.lang.Exception e)
e - The exceptionpublic void end(java.lang.Object result)
result - The result (string)public long getStart()
public long getEnd()
public long getTime()
public java.lang.Object getResult()
public java.lang.Exception getException()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||