|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.msi.threadpuddle.Paddle
Paddle contains the runnable job to perform and statistics
related to running the job.
Would you really want to get stuck in a puddle with all that piddle without a paddle?
| Field Summary | |
private java.lang.Runnable |
job
|
private long |
startTime
|
private long |
stopTime
|
private long |
submitTime
|
| Constructor Summary | |
Paddle(java.lang.Runnable job)
Creates a new Paddle instance for the supplied job. |
|
| Method Summary | |
java.lang.Runnable |
getJob()
Get the value of job. |
long |
getStartTime()
Get the value of startTime. |
Statistics |
getStatistics()
getStatistics retrieve the current job execution statistics. |
long |
getStopTime()
Get the value of stopTime. |
long |
getSubmitTime()
Get the value of submitTime. |
void |
setJob(java.lang.Runnable v)
Set the value of job. |
void |
setStartTime()
Set the value of startTime to current system millis.n |
void |
setStartTime(long v)
Set the value of startTime. |
void |
setStopTime()
Set the value of stopTime to current system millis. |
void |
setStopTime(long v)
Set the value of stopTime. |
void |
setSubmitTime(long v)
Set the value of submitTime. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.Runnable job
private long submitTime
private long startTime
private long stopTime
| Constructor Detail |
public Paddle(java.lang.Runnable job)
Paddle instance for the supplied job.
job - a Runnable value| Method Detail |
public Statistics getStatistics()
getStatistics retrieve the current job execution statistics.
Statistics valuepublic long getStopTime()
public void setStopTime(long v)
v - Value to assign to stopTime.public void setStopTime()
public long getStartTime()
public void setStartTime(long v)
v - Value to assign to startTime.public void setStartTime()
public long getSubmitTime()
public void setSubmitTime(long v)
v - Value to assign to submitTime.public java.lang.Runnable getJob()
public void setJob(java.lang.Runnable v)
v - Value to assign to job.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||