Class RequestInQueueJob
java.lang.Object
com.netscape.cms.jobs.AJobBase
com.netscape.cms.jobs.RequestInQueueJob
- All Implemented Interfaces:
IExtendedPluginInfo, IJob, Runnable
A job for the Jobs Scheduler. This job checks in the internal ldap
db for requests currently in the request queue and send a summary
report to the administrator
the $TOKENS that are available for the this jobs's summary outer form are:
-
$InstanceID $SummaryTotalNum $ExecutionTime
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsFields inherited from class AJobBase
logger, mConfig, mContentParams, mCron, mId, mImplName, mItemForm, mItemParams, mJobCron, mMailForm, mMailHTML, mSummaryMailSubject, mSummaryReceiverEmail, mSummarySenderEmail, PROP_EMAIL_SUBJECT, PROP_EMAIL_TEMPLATE, PROP_ENABLED, PROP_ITEM_TEMPLATE, PROP_RECEIVER_EMAIL, PROP_SENDER_EMAIL, PROP_SUMMARY, STATUS_FAILURE, STATUS_SUCCESSModifier and TypeFieldDescriptionstatic org.slf4j.Loggerprotected IConfigStoreprotected Stringprotected Stringprotected Stringprotected Stringprotected IJobCronprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from interface IExtendedPluginInfo
HELP_TEXT, HELP_TOKEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns a list of configuration parameter names.String[]getExtendedPluginInfo(Locale locale) holds help text for this pluginvoidinit(ISubsystem owner, String id, String implName, IConfigStore config) initialize from the configuration filevoidrun()summarize the queue status and mail itMethods inherited from class AJobBase
buildContentParams, buildItemParams, buildItemParams, buildItemParams, getConfigStore, getId, getImplName, getJobCron, getTemplateContent, isEnabled, isStopped, mailSummary, setId, stopModifier and TypeMethodDescriptionprotected voidbuildContentParams(String name, String val) protected voidprotected voidbuildItemParams(String name, String val) protected voidbuildItemParams(org.mozilla.jss.netscape.security.x509.X509CertImpl cert) Gets the configuration substore used by this jobgetId()get instance id.gets the plugin name of this job.get cron string associated with this jobprotected StringgetTemplateContent(String templatePath) booleantells if the job is enabledbooleanCheck whether the job has been asked to stop.protected voidmailSummary(String content) voidset instance id.voidstop()Request the job to stop gracefully.
-
Field Details
-
PROP_SUBSYSTEM_ID
- See Also:
-
mConfigParams
-
-
Constructor Details
-
RequestInQueueJob
public RequestInQueueJob()
-
-
Method Details
-
getExtendedPluginInfo
holds help text for this plugin- Specified by:
getExtendedPluginInfoin interfaceIExtendedPluginInfo
-
init
public void init(ISubsystem owner, String id, String implName, IConfigStore config) throws EBaseException initialize from the configuration file- Specified by:
initin interfaceIJob- Specified by:
initin classAJobBase- Parameters:
id- String name of this instanceimplName- string name of this implementationconfig- configuration store for this instance- Throws:
EBaseException
-
run
-
getConfigParams
Returns a list of configuration parameter names. The list is passed to the configuration console so instances of this implementation can be configured through the console.- Specified by:
getConfigParamsin interfaceIJob- Returns:
- String array of configuration parameter names.
-