org.figure8.join.services.scheduling
Class EchoQuartzJob
java.lang.Object
org.figure8.join.services.scheduling.EchoQuartzJob
- All Implemented Interfaces:
- org.quartz.Job
public class EchoQuartzJob
- extends java.lang.Object
- implements org.quartz.Job
This is a simple, dummy Quartz job that just echoes job execution context using
commons logging and store processed context into a list. List can be flushed using
flushContexts()
method. This implementation is suited for
tests and debugging mainly.
- Version:
- $Revision: 1.3 $
- Author:
- Laurent Broudoux
Field Summary |
protected static org.apache.commons.logging.Log |
log
Commons logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
- Commons logger.
EchoQuartzJob
public EchoQuartzJob()
flushContexts
public java.util.List flushContexts()
- Returns:
- All the contexts on the list so far, clearing the buffer.
hasBeenTriggered
public boolean hasBeenTriggered()
- Returns:
- true if job has been triggered (ie: has received context), false otherwise.
execute
public void execute(org.quartz.JobExecutionContext context)
- Simply output the context of execution context.
- Specified by:
execute
in interface org.quartz.Job
- Parameters:
context
- The Job exception context
Copyright © 2005-2008 Join. All Rights Reserved.