com.ibm.tivoli.maximo.skd.service

Class SKDAsyncJobSubmitter

    • Constructor Detail

      • SKDAsyncJobSubmitter

        public SKDAsyncJobSubmitter(MboServerInterface ms)
                             throws java.rmi.RemoteException
        Construct the set of Custom Mbos.
        Parameters:
        ms - The MboServerInterface CustomMboSet uses to access internals of the MXServer.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getAsyncJobHandlerClassName

        public java.lang.String getAsyncJobHandlerClassName()
        Returns the job handler class name that will be written to the queue when job is created.
        Specified by:
        getAsyncJobHandlerClassName in class AsyncJobSubmitter
        Returns:
        handler class name
      • getCompleteWhereClause

        public java.lang.String getCompleteWhereClause()
        Get the where clause to identify one or more records of the main object that the async process is to apply on. Normally it is obtained from the owner set of the non-persistent mbo set.
        Specified by:
        getCompleteWhereClause in class AsyncJobSubmitter
        Returns:
        where clause
      • getObjectName

        public java.lang.String getObjectName()
        Returns the main object name that this async process will operate on.
        Specified by:
        getObjectName in class AsyncJobSubmitter
        Returns:
        object name
      • getJobName

        public java.lang.String getJobName()
        Get the name of the job. The name of the job should also be added into the ASYNCJOBNAME internal ALN domain.
        Specified by:
        getJobName in class AsyncJobSubmitter
        Returns:
        job name
      • getDescription

        public java.lang.String getDescription()
        Returns the description of the particular job, it is not the general description of this type of the job, it is the description that user enters to describe the particular job.
        Specified by:
        getDescription in class AsyncJobSubmitter
        Returns:
        description
      • isImmediate

        public boolean isImmediate()
                            throws MXException,
                                   java.rmi.RemoteException
        Whether this job is foreground. If there is a yorn field on this non-persistent mbo that the name is "foreground", its value will be returned, otherwise false will be returned. Overwrite this method if this is not the case.
        Overrides:
        isImmediate in class AsyncJobSubmitter
        Returns:
        true if immediate else false
        Throws:
        MXException
        java.rmi.RemoteException
      • getEmail

        public boolean getEmail()
                         throws MXException,
                                java.rmi.RemoteException
        Gets whether email will be sent for this job. The value came from the email boolean field on the non-persistent MBO. If this is not the case, overwrite this method.
        Overrides:
        getEmail in class AsyncJobSubmitter
        Returns:
        true if email will be sent else false
        Throws:
        MXException
        java.rmi.RemoteException
      • getEmailAddress

        public java.lang.String getEmailAddress()
                                         throws MXException,
                                                java.rmi.RemoteException
        Gets the email address that will be sent for this job. The value came from the emailaddress ALN field on the non-persistent MBO. If this is not the case, overwrite this method.
        Overrides:
        getEmailAddress in class AsyncJobSubmitter
        Returns:
        email address
        Throws:
        MXException
        java.rmi.RemoteException
      • overwriteJobDefault

        public void overwriteJobDefault(MboRemote queue)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overwrite this method if you don't need to overwrite execute() but need to change the default values of the job, such as userid, locale. Set the value to the queue object.
        Overrides:
        overwriteJobDefault in class AsyncJobSubmitter
        Parameters:
        the - job mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setJobName

        public void setJobName(java.lang.String jobName)
        Sets the Job name.
        Parameters:
        jobName -
      • setDescription

        public void setDescription(java.lang.String description)
        Sets the Job description.
        Parameters:
        description -