com.quartzdesk.api.agent.scheduler.quartz.v2_0_x.listener
Class QuartzJobListener
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuartzJobListener
public QuartzJobListener(QuartzScheduler quartzScheduler)
- Creates a new
QuartzJobListener for the specified Quartz scheduler.
- Parameters:
quartzScheduler - a Quartz scheduler.
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.