org.exist.scheduler
Class SystemTaskJob

java.lang.Object
  extended by org.exist.scheduler.SystemTaskJob
All Implemented Interfaces:
JobDescription, Job, StatefulJob

public class SystemTaskJob
extends Object
implements JobDescription, StatefulJob

Class to represent a SystemTask Job Can be used by SystemTasks to schedule themselves as job's SystemTaskJobs may only have a Single Instance running in the scheduler at once, intersecting schedules will be queued.

Author:
Adam Retter

Constructor Summary
SystemTaskJob()
          Default Constructor for Quartz
SystemTaskJob(String jobName, SystemTask task)
          Constructor for Creating a new SystemTask Job
 
Method Summary
 void execute(JobExecutionContext jec)
           
 String getGroup()
          Get the name group for the job
 String getName()
          Get the name of the job
 void setName(String jobName)
          Set the name of the job
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemTaskJob

public SystemTaskJob()
Default Constructor for Quartz


SystemTaskJob

public SystemTaskJob(String jobName,
                     SystemTask task)
Constructor for Creating a new SystemTask Job

Method Detail

getName

public final String getName()
Description copied from interface: JobDescription
Get the name of the job

Specified by:
getName in interface JobDescription
Returns:
The job's name

setName

public final void setName(String jobName)
Description copied from interface: JobDescription
Set the name of the job

Specified by:
setName in interface JobDescription
Parameters:
jobName - The job's new name

getGroup

public final String getGroup()
Description copied from interface: JobDescription
Get the name group for the job

Specified by:
getGroup in interface JobDescription
Returns:
The job's group name

execute

public final void execute(JobExecutionContext jec)
                   throws JobExecutionException
Specified by:
execute in interface Job
Throws:
JobExecutionException


Copyright (C) Wolfgang Meier. All rights reserved.