|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.jobs.scheduling.JobExecutionStatus
Represents the execution status of an ScheduledJob which is
scheduled for execution in the JobManager context.
| Field Summary | |
private JobExecutionInterval |
interval
The execution interval of an IJob |
private long |
lastExecutionTime
The time in milliseconds since January 1, 1970, 00:00:00 GMT that an IJob was last executed at
|
private ScheduledJob |
scheduledJob
The ScheduledJob whose execution status is described
|
| Constructor Summary | |
JobExecutionStatus(JobExecutionInterval interval)
Creates a new JobExceutionInterval.
|
|
| Method Summary | |
JobExecutionInterval |
getExecutionInterval()
Gets the JobExecutionInterval of this
JobExceutionStatus which hold the period which separates
subsequent executions of an IJob.
|
long |
getLastExecutionTime()
Gets the time in milliseconds since January 1, 1970, 00:00:00 GMT that an IJob was last executed at.
|
long |
getNextExecutionTime()
Gets the next execution time of an IJob in milliseconds
since January 1, 1970, 00:00:00 GMT.
|
long |
getPeriod()
Gets the period in milliseconds that separates subsequent executions of a IJob.
|
ScheduledJob |
getScheduledJob()
Gets the ScheduledJob whose status is described by
this JobExecutionStatus.
|
void |
setExecutionInterval(JobExecutionInterval interval)
Sets the JobExecutionInterval of this
JobExceutionStatus which hold the period which separates
subsequent executions of an IJob.
|
void |
setLastExecutionTime(long lastExecutionTime)
Sets the time in milliseconds since January 1, 1970, 00:00:00 GMT that an IJob was last executed at.
|
void |
setScheduledJob(ScheduledJob scheduledJob)
Sets the ScheduledJob whose status is described by
this JobExecutionStatus.
|
String |
toString()
Gets the textual representation of this JobExecutionStatus
instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private JobExecutionInterval interval
The execution interval of an IJob
private long lastExecutionTime
The time in milliseconds since January 1, 1970, 00:00:00 GMT that an
IJob was last executed at
private ScheduledJob scheduledJob
The ScheduledJob whose execution status is described
| Constructor Detail |
public JobExecutionStatus(JobExecutionInterval interval)
Creates a new JobExceutionInterval.
interval - a JobExecutionInterval object that holds
the period in milliseconds that separates executions of an
IJob| Method Detail |
public void setScheduledJob(ScheduledJob scheduledJob)
Sets the ScheduledJob whose status is described by
this JobExecutionStatus.
scheduledJob - the ScheduledJob whose status is
described by this JobExecutionStatuspublic ScheduledJob getScheduledJob()
Gets the ScheduledJob whose status is described by
this JobExecutionStatus.
ScheduledJob whose status is described by
this JobExecutionStatuspublic void setExecutionInterval(JobExecutionInterval interval)
Sets the JobExecutionInterval of this
JobExceutionStatus which hold the period which separates
subsequent executions of an IJob.
interval - the JobExecutionInterval to set
IllegalArgumentException - if a null value is specified
for the interval argumentpublic JobExecutionInterval getExecutionInterval()
Gets the JobExecutionInterval of this
JobExceutionStatus which hold the period which separates
subsequent executions of an IJob.
JobExecutionInterval of this
JobExceutionStatuspublic long getPeriod()
Gets the period in milliseconds that separates subsequent executions of
a IJob.
IJobpublic void setLastExecutionTime(long lastExecutionTime)
Sets the time in milliseconds since January 1, 1970, 00:00:00 GMT that an
IJob was last executed at.
lastExecutionTime - the time in milliseconds since January 1, 1970,
00:00:00 GMT that an IJob was last executed at
IllegalArgumentException - if a value less than zero is specified
for lastExecutionTimepublic long getLastExecutionTime()
Gets the time in milliseconds since January 1, 1970, 00:00:00 GMT that an
IJob was last executed at.
IJob was last executed atpublic long getNextExecutionTime()
Gets the next execution time of an IJob in milliseconds
since January 1, 1970, 00:00:00 GMT.
IJob in milliseconds
since January 1, 1970, 00:00:00 GMTpublic String toString()
Gets the textual representation of this JobExecutionStatus
instance. This method returns the localized textual representation of the
currently set period as returned by the
JobExecutionInterval.getLocalizedPeriod()
method, e.g. "5 minutes".
JobExecutionStatus instance
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||