Class AJobBase
java.lang.Object
com.netscape.cms.jobs.AJobBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerprotected IConfigStoreprotected static String[]protected 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier 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) abstract voidinit(ISubsystem owner, String id, String implName, IConfigStore config) abstract methodsbooleantells if the job is enabledbooleanCheck whether the job has been asked to stop.protected voidmailSummary(String content) abstract voidrun()voidset instance id.voidstop()Request the job to stop gracefully.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netscape.certsrv.jobs.IJob
getConfigParams
-
Field Details
-
logger
public static org.slf4j.Logger logger -
PROP_SUMMARY
- See Also:
-
PROP_ENABLED
- See Also:
-
PROP_EMAIL_SUBJECT
- See Also:
-
PROP_EMAIL_TEMPLATE
- See Also:
-
PROP_ITEM_TEMPLATE
- See Also:
-
PROP_SENDER_EMAIL
- See Also:
-
PROP_RECEIVER_EMAIL
- See Also:
-
STATUS_FAILURE
- See Also:
-
STATUS_SUCCESS
- See Also:
-
mImplName
-
mConfig
-
mId
-
mCron
-
mJobCron
-
mConfigParams
-
mSummaryMailSubject
-
mMailHTML
protected boolean mMailHTML -
mMailForm
-
mItemForm
-
mSummarySenderEmail
-
mSummaryReceiverEmail
-
mContentParams
-
mItemParams
-
-
Constructor Details
-
AJobBase
public AJobBase()
-
-
Method Details
-
isEnabled
-
init
public abstract void init(ISubsystem owner, String id, String implName, IConfigStore config) throws EBaseException abstract methods- Specified by:
initin interfaceIJob- Parameters:
id- String name of this instanceimplName- string name of this implementationconfig- configuration store for this instance- Throws:
EBaseException- any initilization failure
-
run
-
getId
-
setId
-
getJobCron
get cron string associated with this job- Specified by:
getJobCronin interfaceIJob- Returns:
- a JobCron object that represents the schedule of this job
-
getImplName
gets the plugin name of this job.- Specified by:
getImplNamein interfaceIJob- Returns:
- a String that is the name of this implementation
-
getConfigStore
Gets the configuration substore used by this job- Specified by:
getConfigStorein interfaceIJob- Returns:
- configuration store
-
getTemplateContent
-
mailSummary
-
buildItemParams
protected void buildItemParams(org.mozilla.jss.netscape.security.x509.X509CertImpl cert) -
buildItemParams
-
buildItemParams
-
buildContentParams
-
stop
-
isStopped
-