org.codehaus.plexus.scheduler
Class DefaultJobListener

java.lang.Object
  extended byorg.codehaus.plexus.scheduler.DefaultJobListener
All Implemented Interfaces:
org.quartz.JobListener

public class DefaultJobListener
extends java.lang.Object
implements org.quartz.JobListener

Currently the role this class plays is set the value of the JobDataMap in the job so that the convenience methods for accessing the logger, context, service broker and configuration will work as expected.

Version:
$Id: DefaultJobListener.java 2978 2006-01-05 21:51:13Z evenisse $
Author:
Jason van Zyl

Constructor Summary
DefaultJobListener()
           
 
Method Summary
 java.lang.String getName()
           Get the name of the JobListener.
 void jobExecutionVetoed(org.quartz.JobExecutionContext jobExecutionContext)
           
 void jobToBeExecuted(org.quartz.JobExecutionContext context)
           Called by the Scheduler when a Job is about to be executed (an associated Trigger has occured).
 void jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException)
           Called by the Scheduler after a Job has been executed, and be for the associated Trigger's triggered(xx) method has been called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJobListener

public DefaultJobListener()
Method Detail

getName

public java.lang.String getName()

Get the name of the JobListener.

Specified by:
getName in interface org.quartz.JobListener

jobToBeExecuted

public void jobToBeExecuted(org.quartz.JobExecutionContext context)

Called by the Scheduler when a Job is about to be executed (an associated Trigger has occured).

Specified by:
jobToBeExecuted in interface org.quartz.JobListener

jobExecutionVetoed

public void jobExecutionVetoed(org.quartz.JobExecutionContext jobExecutionContext)
Specified by:
jobExecutionVetoed in interface org.quartz.JobListener

jobWasExecuted

public void jobWasExecuted(org.quartz.JobExecutionContext context,
                           org.quartz.JobExecutionException jobException)

Called by the Scheduler after a Job has been executed, and be for the associated Trigger's triggered(xx) method has been called.

Specified by:
jobWasExecuted in interface org.quartz.JobListener


Copyright © 2001-2007 Codehaus. All Rights Reserved.