ilog.rules.dvs.ssp

Interface IlrSSPAsyncOperations

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void close()
      Closes the SSP async system and releases all referenced resources.
      java.lang.String createJob(IlrScenarioSuiteDescriptor suiteDescriptor)
      Creates a new async job for a specific suite descriptor, then launches it as a background task.
      IlrSSPJobDescription getJob(java.lang.String jobId)
      Returns the job description that matches a job ID.
      IlrSSPJobResult getJobResult(java.lang.String jobId)
      Returns the result for a specific job.
      java.util.Set<IlrSSPJobDescription> getJobs()
      Returns the set of job descriptions in the SSP.
      void killJob(java.lang.String jobId)
      Sends the kill signal to a job.
    • Method Detail

      • createJob

        java.lang.String createJob(IlrScenarioSuiteDescriptor suiteDescriptor)
                                   throws IlrRunnerException
        Creates a new async job for a specific suite descriptor, then launches it as a background task.
        Throws:
        IlrRunnerException - if an error occurs creating the job.
        Parameters:
        suiteDescriptor - The suite descriptor for the job.
        Returns:
        The job ID.
      • getJobResult

        IlrSSPJobResult getJobResult(java.lang.String jobId)
                                     throws IlrRunnerException
        Returns the result for a specific job.
        Throws:
        IlrRunnerException - if an error occurs retrieving the job result, or if the job has not yet completed.
        Parameters:
        jobId - The ID of the job. This is the value returned by calling createJob().
        Returns:
        The job result. If no job matches jobId, null is returned.
      • killJob

        void killJob(java.lang.String jobId)
                     throws IlrRunnerException
        Sends the kill signal to a job. This method returns before the job is actually stopped.
        Throws:
        IlrRunnerException - if an internal error occurs while marking the job as killed.
        Parameters:
        jobId - The ID of the job to kill.
      • getJob

        IlrSSPJobDescription getJob(java.lang.String jobId)
                                    throws IlrRunnerException
        Returns the job description that matches a job ID.
        Throws:
        IlrRunnerException - if an error occurs retrieving the job description.
        Parameters:
        jobId - The job ID.
        Returns:
        The job description. If no description matches jobId, null is returned.
      • close

        void close()
        Closes the SSP async system and releases all referenced resources.

© Copyright IBM Corp. 1987, 2017