com.netscape.certsrv.jobs
Interface IJob

All Known Implementing Classes:
AJobBase, PublishCertsJob, RenewalNotificationJob, RequestInQueueJob, UnpublishExpiredJob

public interface IJob

An interface to be implemented from for a job to be scheduled by the Jobs Scheduler.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 java.lang.String[] getConfigParams()
          Returns a list of configuration parameter names.
 IConfigStore getConfigStore()
          Gets the configuration substore used by this job
 java.lang.String getId()
          get instance id.
 java.lang.String getImplName()
          gets the plugin name of this job.
 IJobCron getJobCron()
          get cron string associated with this job
 void init(ISubsystem owner, java.lang.String id, java.lang.String implName, IConfigStore config)
          Initialize from the configuration file.
 boolean isEnabled()
          tells if the job is enabled
 void setId(java.lang.String id)
          set instance id.
 

Method Detail

init

void init(ISubsystem owner,
          java.lang.String id,
          java.lang.String implName,
          IConfigStore config)
          throws EBaseException
Initialize from the configuration file.

Parameters:
id - String name of this instance
implName - string name of this implementation
config - configuration store for this instance
Throws:
EBaseException - any initilization failure

isEnabled

boolean isEnabled()
tells if the job is enabled

Returns:
a boolean value indicating whether the job is enabled or not

setId

void setId(java.lang.String id)
set instance id.

Parameters:
id - String id of the instance

getId

java.lang.String getId()
get instance id.

Returns:
a String identifier

getJobCron

IJobCron getJobCron()
get cron string associated with this job

Returns:
a JobCron object that represents the schedule of this job

getConfigParams

java.lang.String[] 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.

Returns:
String array of configuration parameter names.

getImplName

java.lang.String getImplName()
gets the plugin name of this job.

Returns:
a String that is the name of this implementation

getConfigStore

IConfigStore getConfigStore()
Gets the configuration substore used by this job

Returns:
configuration store