Expresso 5-6

com.jcorporate.expresso.services.job
Class ClearOldValidation

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

public class ClearOldValidation
extends Job

This job clears all expired validation queue entries. It is typically run once a week or so to clean out unwanted validation items to keep the size of the table down and remove any potential referential integrity issues.

A Job is an asynchronous task that is performed, run and the results of the job are eventually mailed to the queuing user.

Since:
Expresso 5.3
Author:
Michael Rimov

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
ClearOldValidation()
          Creates an instance of ClearOldValidation.
 
Method Summary
 String getTitle()
          Retrieve the friendly title name of the job
 void run()
          Deletes all expired validation queue entries.
 
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

ClearOldValidation

public ClearOldValidation()
Creates an instance of ClearOldValidation. Call setRequestingUid() and setDataContext() before using.

See Also:
SecuredDBObject.SecuredDBObject(java.lang.String, int)
Method Detail

run

public void run()
Deletes all expired validation queue entries.

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

getTitle

public String getTitle()
Retrieve the friendly title name of the job

Overrides:
getTitle in class Job
Returns:
java.lang.String for the title.

Expresso 5-6

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