org.apache.cocoon.components.cron
Interface JobSchedulerEntry

All Known Implementing Classes:
QuartzJobSchedulerEntry

public interface JobSchedulerEntry

Interface for classes holding scheduled job entries.

Version:
CVS $Id: JobSchedulerEntry.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Giacomo Pati

Method Summary
 String getJobName()
          The name of the role/class of the job
 String getName()
          Return name of entry.
 Date getNextTime()
          Retrieve time when this job should run next.
 String getSchedule()
          Get a human readable representation of the schedule of this entry.
 boolean isRunning()
          Is this job currently running?
 

Method Detail

getJobName

public String getJobName()
The name of the role/class of the job

Returns:
Name of the role/class of this job

getName

public String getName()
Return name of entry.

Returns:
the name of the entry

getNextTime

public Date getNextTime()
Retrieve time when this job should run next.

Returns:
the time in milliseconds when job should run

isRunning

public boolean isRunning()
Is this job currently running?

Returns:
whether this job is currently running?

getSchedule

public String getSchedule()
Get a human readable representation of the schedule of this entry. Is up to an implementation how it presents the schedule for this entry

Returns:
the human readable representation of the schedule of this entry


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.