Expresso 5-6

com.jcorporate.expresso.services.job
Class ControllerJob

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.ControllerJob
All Implemented Interfaces:
Runnable

public class ControllerJob
extends Job

ControllerJob provides a Job "wrapper" for any Controller object. It uses the parameters to the Job to invoke the specified state of the controller, and includes the controller's outputs in the email notification to the requestor

Author:
Michael Nash

Field Summary
 
Fields inherited from class com.jcorporate.expresso.core.job.Job
IS_NOTIFY_ON_JOB_SUCCESS, log
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ControllerJob()
           
 
Method Summary
 String getTitle()
          REtrieve the job title
 void run()
          Instantiate the specified Controller, transition to the appropriate state (if given, else call newState("") to transition to default state) then send any outputs generated in the "finish" email.
 
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

ControllerJob

public ControllerJob()
Method Detail

getTitle

public String getTitle()
REtrieve the job title

Overrides:
getTitle in class Job
Returns:
java.lang.String

run

public void run()
Instantiate the specified Controller, transition to the appropriate state (if given, else call newState("") to transition to default state) then send any outputs generated in the "finish" email.

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.