net.sf.sasl.common.schedule
Class QuartzCallableAdapter

java.lang.Object
  extended by net.sf.sasl.common.schedule.QuartzCallableAdapter
All Implemented Interfaces:
org.quartz.Job

public class QuartzCallableAdapter
extends Object
implements org.quartz.Job

The class is a helper class for the QuartzServiceAdapter and should not be used outside the package.
Executes a callable which is stored in the jobs job data map. See execute(JobExecutionContext) for more informations.

Since:
0.0.1 (sasl-common-aspect-library)
Author:
Philipp Förmer

Constructor Summary
QuartzCallableAdapter()
          Default constructor, does nothing actually.
 
Method Summary
 void execute(org.quartz.JobExecutionContext jobExecutionContext)
          Method fetches a Callable and the associated QuartzCallableExecutionStatus from the job data map of the job detail given by the job execution context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuartzCallableAdapter

public QuartzCallableAdapter()
Default constructor, does nothing actually.

Since:
0.0.1 (sasl-common-aspect-library)
Method Detail

execute

public void execute(org.quartz.JobExecutionContext jobExecutionContext)
             throws org.quartz.JobExecutionException
Method fetches a Callable and the associated QuartzCallableExecutionStatus from the job data map of the job detail given by the job execution context. After it tries to set the execution status as not cancellable. If this fails, the method returns immediately. Otherwise it invokes the call method of the callable and stores the result in the job execution context.

Specified by:
execute in interface org.quartz.Job
Parameters:
jobExecutionContext - non null
Throws:
org.quartz.JobExecutionException - (1)if the input is invalid (above named objects are not contained in the jobExecutionContext)
(2)the call method of the callable throwed a throwable.
Since:
0.0.1 (sasl-common-aspect-library)
See Also:
Job.execute(org.quartz.JobExecutionContext)


Copyright © 2010. All Rights Reserved.