Class RequestInQueueJob

  • All Implemented Interfaces:
    IExtendedPluginInfo, IJob, java.lang.Runnable

    public class RequestInQueueJob
    extends AJobBase
    implements IExtendedPluginInfo
    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:
    IJob, AJobBase
    • Field Detail

      • PROP_SUBSYSTEM_ID

        protected static final java.lang.String PROP_SUBSYSTEM_ID
        See Also:
        Constant Field Values
      • mConfigParams

        protected static java.lang.String[] mConfigParams
    • Constructor Detail

      • RequestInQueueJob

        public RequestInQueueJob()
    • Method Detail

      • getExtendedPluginInfo

        public java.lang.String[] getExtendedPluginInfo​(java.util.Locale locale)
        holds help text for this plugin
        Specified by:
        getExtendedPluginInfo in interface IExtendedPluginInfo
      • init

        public void init​(ISubsystem owner,
                         java.lang.String id,
                         java.lang.String implName,
                         IConfigStore config)
                  throws EBaseException
        initialize from the configuration file
        Specified by:
        init in interface IJob
        Specified by:
        init in class AJobBase
        Parameters:
        id - String name of this instance
        implName - string name of this implementation
        config - configuration store for this instance
        Throws:
        EBaseException
      • run

        public void run()
        summarize the queue status and mail it
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class AJobBase
      • getConfigParams

        public 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.
        Specified by:
        getConfigParams in interface IJob
        Returns:
        String array of configuration parameter names.