Expresso 5-6

com.jcorporate.expresso.services.job
Class TestJob

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.jcorporate.expresso.core.registry.ExpressoThread
          extended bycom.jcorporate.expresso.core.job.Job
              extended bycom.jcorporate.expresso.services.job.TestJob
All Implemented Interfaces:
Runnable

public class TestJob
extends Job

TestJob provides a "dummy" background job for testing the job queue, timerserver, and relating functions. A test job simply waits for a while, then sends a confirmation message back to the user that requested the job

Version:
$Revision: 1.14 $ $Date: 2004/11/17 20:48:18 $
Author:
Michael Nash

Field Summary
 
Fields inherited from class com.jcorporate.expresso.core.job.Job
IS_NOTIFY_ON_JOB_SUCCESS
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestJob()
           
 
Method Summary
 String getTitle()
          Retrieve the title of the job.
 void run()
          Receive the request and send the emails
 
Methods inherited from class com.jcorporate.expresso.core.job.Job
addFunction, addParameter, addParamValidValues, finish, finish, getCronAlarmEntry, getDataContext, getFunctions, getJobNumber, getJobParameter, getJobParameterList, getJobQueueEntry, getParameterDescription, getParameterNamesAndDescriptions, getParamValidValues, getSchema, getString, getString, getString, getString, getString, getString, getUser, hasParameters, instantiate, multiThreaded, sendMail, setCronAlarmEntry, setQueue, setSchema, setUseCron, useCron
 
Methods inherited from class com.jcorporate.expresso.core.registry.ExpressoThread
getThreadContext
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestJob

public TestJob()
Method Detail

getTitle

public String getTitle()
Description copied from class: Job
Retrieve the title of the job. Override in your own job for a descriptive entry

Overrides:
getTitle in class Job
Returns:
java.lang.String The Title of the controller

run

public void run()
Receive the request and send the emails

Specified by:
run in interface Runnable
Overrides:
run in class Job

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.