| com.jcorporate.expresso.core.job.Job com.jcorporate.expresso.services.job.ValidationJob
ValidationJob | public class ValidationJob extends Job (Code) | | This class implements an Expresso Job, which is a background task, to
decouple the user selecting some action that requires validation, from
the mechanics of storing the user/application-selected parameters and
starting the processing. The primary reason for using a Job here is
to allow load-balancing if required, and also to make the UI appear
much faster (since otherwise the user would have to wait until the
entire function finished).
The submission of the job is done using the ValidationEntry class.
author: Shash Chatterjee version: $Revision: 1.13 $ $Date: 2004/11/17 20:48:18 $ |
Constructor Summary | |
public | ValidationJob() The default constructor for instantiating a new job. |
Method Summary | |
public String | getTitle() | protected void | initialize() This method initializes the job, currently all it does is to log a message. | public void | run() This method actually implements the "meat" of the Job.
It's purpose is to take the parameters given the job when
it was submitted and then store them into the validation
subsystem. |
ValidationJob | public ValidationJob()(Code) | | The default constructor for instantiating a new job.
Creation date: (9/23/2001 9:25:23 AM)
Author: Shash Chatterjee
|
getTitle | public String getTitle()(Code) | | The name of this Job, used typically in UI screens
Creation date: (9/23/2001 9:30:54 AM)
Author: Shash Chatterjee
The title |
initialize | protected void initialize() throws AuthValidationException(Code) | | This method initializes the job, currently all it does is to log a message.
Creation date: (9/23/2001 9:31:39 AM)
Author: Shash Chatterjee
throws: AuthValidationException - If there is a DB error getting job queue entry id |
run | public void run()(Code) | | This method actually implements the "meat" of the Job.
It's purpose is to take the parameters given the job when
it was submitted and then store them into the validation
subsystem. It also invokes a application-specific
"validation handler" to allow the application to do all its
unique things for whatever validation task it is requesting.
Creation date: (9/23/2001 9:33:35 AM)
Author: Shash Chatterjee
|
Methods inherited from com.jcorporate.expresso.core.job.Job | protected void addFunction(String name, String descrip)(Code)(Java Doc) public void addParamValidValues(String paramCode, Vector paramValidValues)(Code)(Java Doc) protected void addParameter(String paramCode, String paramDescrip)(Code)(Java Doc) protected void finish(String msg)(Code)(Java Doc) protected void finish(String msg, Throwable t)(Code)(Java Doc) public CrontabEntry getCronAlarmEntry()(Code)(Java Doc) protected String getDataContext() throws DBException(Code)(Java Doc) public Hashtable getFunctions()(Code)(Java Doc) public String getJobNumber()(Code)(Java Doc) protected String getJobParameter(String paramCode) throws DBException(Code)(Java Doc) protected List getJobParameterList() throws DBException(Code)(Java Doc) public JobQueue getJobQueueEntry() throws DBException(Code)(Java Doc) public Vector getParamValidValues(String paramCode)(Code)(Java Doc) public String getParameterDescription(String paramName)(Code)(Java Doc) public Hashtable getParameterNamesAndDescriptions()(Code)(Java Doc) protected String getSchema(String schemaClass) throws ServerException(Code)(Java Doc) protected String getString(String stringCode)(Code)(Java Doc) protected String getString(String stringCode, String arg1)(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2)(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3)(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3, String arg4)(Code)(Java Doc) protected String getString(String stringCode, Object[] args)(Code)(Java Doc) public String getTitle()(Code)(Java Doc) public String getUser()(Code)(Java Doc) protected boolean hasParameters() throws DBException(Code)(Java Doc) public static synchronized Job instantiate(String className) throws ServerException(Code)(Java Doc) public boolean multiThreaded()(Code)(Java Doc) public void run()(Code)(Java Doc) protected synchronized void sendMail(String subject, String myRecipients, Vector mailMessage)(Code)(Java Doc) public void setCronAlarmEntry(CrontabEntry obj)(Code)(Java Doc) public synchronized void setQueue(JobQueue newJobQueue)(Code)(Java Doc) protected void setSchema(String schemaClass)(Code)(Java Doc) public void setUseCron(boolean useCron)(Code)(Java Doc) public boolean useCron()(Code)(Java Doc)
|
|
|