Package org.quartz.commonj
Class WorkManagerThreadExecutor
- java.lang.Object
-
- org.quartz.commonj.WorkManagerThreadExecutor
-
- All Implemented Interfaces:
ThreadExecutor
public class WorkManagerThreadExecutor extends java.lang.Object implements ThreadExecutor
CommonJ WorkManager implementation of hacked Quartz ThreadExecutor class. This class schedules work on a WorkManager which is looked up in JNDI. The advantage is that all the work performed is done on a managed thread which is required by WebSphere, see QUARTZ-743 for details.- Author:
- matt.accola
-
-
Constructor Summary
Constructors Constructor Description WorkManagerThreadExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(java.lang.Thread thread)Submit a task for executionvoidinitialize()Initialize any state prior to callingThreadExecutor.execute(Thread)voidsetWorkManagerName(java.lang.String workManagerName)Sets the JNDI name of the work manager to use.
-
-
-
Method Detail
-
execute
public void execute(java.lang.Thread thread)
Description copied from interface:ThreadExecutorSubmit a task for execution- Specified by:
executein interfaceThreadExecutor- Parameters:
thread- the thread to execute
-
initialize
public void initialize()
Description copied from interface:ThreadExecutorInitialize any state prior to callingThreadExecutor.execute(Thread)- Specified by:
initializein interfaceThreadExecutor
-
setWorkManagerName
public void setWorkManagerName(java.lang.String workManagerName)
Sets the JNDI name of the work manager to use.- Parameters:
workManagerName- the JNDI name to use to lookup the work manager
-
-