com.msi.threadpuddle
Class Paddle

java.lang.Object
  |
  +--com.msi.threadpuddle.Paddle

public class Paddle
extends java.lang.Object

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?

Version:
1.0
Author:
Ken Thompson

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

job

private java.lang.Runnable job

submitTime

private long submitTime

startTime

private long startTime

stopTime

private long stopTime
Constructor Detail

Paddle

public Paddle(java.lang.Runnable job)
Creates a new Paddle instance for the supplied job.

Parameters:
job - a Runnable value
Method Detail

getStatistics

public Statistics getStatistics()
getStatistics retrieve the current job execution statistics.

Returns:
a Statistics value

getStopTime

public long getStopTime()
Get the value of stopTime.

Returns:
value of stopTime.

setStopTime

public void setStopTime(long v)
Set the value of stopTime.

Parameters:
v - Value to assign to stopTime.

setStopTime

public void setStopTime()
Set the value of stopTime to current system millis.


getStartTime

public long getStartTime()
Get the value of startTime.

Returns:
value of startTime.

setStartTime

public void setStartTime(long v)
Set the value of startTime.

Parameters:
v - Value to assign to startTime.

setStartTime

public void setStartTime()
Set the value of startTime to current system millis.n


getSubmitTime

public long getSubmitTime()
Get the value of submitTime.

Returns:
value of submitTime.

setSubmitTime

public void setSubmitTime(long v)
Set the value of submitTime.

Parameters:
v - Value to assign to submitTime.

getJob

public java.lang.Runnable getJob()
Get the value of job.

Returns:
value of job.

setJob

public void setJob(java.lang.Runnable v)
Set the value of job.

Parameters:
v - Value to assign to job.


Copyright © 2001-2002 MileStone Solutions, Inc. All Rights Reserved.