org.rhq.enterprise.server.scheduler.jobs
Class DynaGroupAutoRecalculationJob

java.lang.Object
  extended by org.rhq.enterprise.server.scheduler.jobs.AbstractStatefulJob
      extended by org.rhq.enterprise.server.scheduler.jobs.DynaGroupAutoRecalculationJob
All Implemented Interfaces:
org.quartz.Job, org.quartz.StatefulJob

public class DynaGroupAutoRecalculationJob
extends AbstractStatefulJob

This is a Quartz scheduler job whose sole purpose in life is, when triggered, ask the group definition manager to see if there are any DynaGroups to recalculate

This implements StatefulJob (as opposed to Job) because we do not need nor want this job triggered concurrently. That is, we don't need or want multiple instances of this job running at the same time.

Author:
Joseph Marques

Constructor Summary
DynaGroupAutoRecalculationJob()
           
 
Method Summary
 void executeJobCode(org.quartz.JobExecutionContext context)
          Subclasses should implement this method to perform the actual job.
 
Methods inherited from class org.rhq.enterprise.server.scheduler.jobs.AbstractStatefulJob
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynaGroupAutoRecalculationJob

public DynaGroupAutoRecalculationJob()
Method Detail

executeJobCode

public void executeJobCode(org.quartz.JobExecutionContext context)
                    throws org.quartz.JobExecutionException
Description copied from class: AbstractStatefulJob
Subclasses should implement this method to perform the actual job.

Specified by:
executeJobCode in class AbstractStatefulJob
Throws:
org.quartz.JobExecutionException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.