public abstract class

AbstractJob

extends Object
implements InterruptableJob
java.lang.Object
   ↳ org.apache.archiva.redback.components.scheduler.AbstractJob

Class Overview

Base class from which all Jobs running in the scheduler should be derived from if they want access to the ServiceBroker.

Summary

Constants
String CONTEXT JobDataMap tag for the job's context.
String EXECUTION_CONFIGURATION JobDataMap tag for the job's configuration.
String LOGGER JobDataMap tag for the job's logger.
String SERVICE_MANAGER JobDataMap tag for the job's service broker.
Public Constructors
AbstractJob()
Public Methods
abstract void execute(JobExecutionContext context)
Execute the Job.
JobDataMap getJobDataMap()
Get Job Data Map
Logger getLogger()
Get the Logger.
void interrupt()
boolean isInterrupted()
void setJobDataMap(JobDataMap jobDataMap)
Set Job Data Map
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.quartz.InterruptableJob
From interface org.quartz.Job

Constants

public static final String CONTEXT

JobDataMap tag for the job's context.

Constant Value: "JOB_CONTEXT"

public static final String EXECUTION_CONFIGURATION

JobDataMap tag for the job's configuration.

Constant Value: "JOB_EXECUTION_CONFIGURATION"

public static final String LOGGER

JobDataMap tag for the job's logger.

Constant Value: "JOB_LOGGER"

public static final String SERVICE_MANAGER

JobDataMap tag for the job's service broker.

Constant Value: "JOB_SERVICE_MANAGER"

Public Constructors

public AbstractJob ()

Public Methods

public abstract void execute (JobExecutionContext context)

Execute the Job.

Throws
JobExecutionException

public JobDataMap getJobDataMap ()

Get Job Data Map

public Logger getLogger ()

Get the Logger.

public void interrupt ()

Throws
UnableToInterruptJobException

public boolean isInterrupted ()

public void setJobDataMap (JobDataMap jobDataMap)

Set Job Data Map