com.quartzdesk.api.agent.scheduler.quartz.v2_0_x.listener
Class QuartzJobListener

java.lang.Object
  extended by com.quartzdesk.api.agent.scheduler.quartz.v2_0_x.listener.QuartzJobListener

public class QuartzJobListener
extends Object

Implementation of the JobListener interface for Quartz scheduler v2.0.x that relays job execution events to the QuartzDesk Agent.

Version:
$Id:$
Author:
Jan Moravec

Constructor Summary
QuartzJobListener(QuartzScheduler quartzScheduler)
          Creates a new QuartzJobListener for the specified Quartz scheduler.
 
Method Summary
protected  com.quartzdesk.agent.api.scheduler.quartz.job.QuartzJobExecutionEvent createJobExecEvent(JobExecutionContext context)
           
protected  String getJobId(JobExecutionContext context)
          Returns the ID of the job described in the specified context.
 String getName()
           
 void jobExecutionVetoed(JobExecutionContext context)
           
 void jobToBeExecuted(JobExecutionContext context)
           
 void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuartzJobListener

public QuartzJobListener(QuartzScheduler quartzScheduler)
Creates a new QuartzJobListener for the specified Quartz scheduler.

Parameters:
quartzScheduler - a Quartz scheduler.
Method Detail

getName

public String getName()

jobToBeExecuted

public void jobToBeExecuted(JobExecutionContext context)

jobExecutionVetoed

public void jobExecutionVetoed(JobExecutionContext context)

jobWasExecuted

public void jobWasExecuted(JobExecutionContext context,
                           JobExecutionException jobException)

createJobExecEvent

protected com.quartzdesk.agent.api.scheduler.quartz.job.QuartzJobExecutionEvent createJobExecEvent(JobExecutionContext context)

getJobId

protected String getJobId(JobExecutionContext context)
Returns the ID of the job described in the specified context.

Parameters:
context - a JobExecutionContext instance.
Returns:
the job ID.


Copyright © 2013–2017 QuartzDesk.com. All rights reserved.