org.apache.cocoon.components.cron
Class QuartzJobSchedulerEntry

java.lang.Object
  extended by org.apache.cocoon.components.cron.QuartzJobSchedulerEntry
All Implemented Interfaces:
JobSchedulerEntry

public class QuartzJobSchedulerEntry
extends Object
implements JobSchedulerEntry

Implementation of the JobSchedulerEntry interface for the QuartzJobScheduler

Version:
CVS $Id: QuartzJobSchedulerEntry.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Giacomo Pati

Constructor Summary
QuartzJobSchedulerEntry(String name, org.quartz.Scheduler scheduler)
          Construct an JobSchedulerEntry
 
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?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuartzJobSchedulerEntry

public QuartzJobSchedulerEntry(String name,
                               org.quartz.Scheduler scheduler)
                        throws org.quartz.SchedulerException
Construct an JobSchedulerEntry

Parameters:
name - The name of the job
scheduler - The QuartzJobScheduler
Throws:
org.quartz.SchedulerException - in case of failures
Method Detail

getJobName

public String getJobName()
Description copied from interface: JobSchedulerEntry
The name of the role/class of the job

Specified by:
getJobName in interface JobSchedulerEntry
Returns:
Name of the role/class of this job

getName

public String getName()
Description copied from interface: JobSchedulerEntry
Return name of entry.

Specified by:
getName in interface JobSchedulerEntry
Returns:
the name of the entry

getNextTime

public Date getNextTime()
Description copied from interface: JobSchedulerEntry
Retrieve time when this job should run next.

Specified by:
getNextTime in interface JobSchedulerEntry
Returns:
the time in milliseconds when job should run

isRunning

public boolean isRunning()
Description copied from interface: JobSchedulerEntry
Is this job currently running?

Specified by:
isRunning in interface JobSchedulerEntry
Returns:
whether this job is currently running?

getSchedule

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

Specified by:
getSchedule in interface JobSchedulerEntry
Returns:
the human readable representation of the schedule of this entry


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.