Class CancelJobs


  • public class CancelJobs
    extends ZosConnection
    Class example to showcase CancelJobs functionality.
    Version:
    1.0
    Author:
    Leonid Baranov
    • Constructor Detail

      • CancelJobs

        public CancelJobs()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Main method defines z/OSMF host and user connection and other parameters needed to showcase CancelJobs functionality. Calls CancelJobs example methods.
        Parameters:
        args - for main not used
        Throws:
        Exception - error in processing request
      • cancelJobsCommonWithVersion

        public static Response cancelJobsCommonWithVersion​(String version)
                                                    throws Exception
        Example on how to call CancelJobs cancelJobsCommon method. cancelJobsCommon accepts a CancelJobParams object with parameters filled needed to cancel a given job and the version to indicate 1.0 for async or 2.0 for sync processing of the request
        Parameters:
        version - version value
        Returns:
        response http Response object
        Throws:
        Exception - error in processing request
      • cancelJobsCommon

        public static Response cancelJobsCommon()
                                         throws Exception
        Example on how to call CancelJobs cancelJobsCommon method. cancelJobsCommon accepts a CancelJobParams object with parameters filled needed to cancel a given job.
        Returns:
        response http Response object
        Throws:
        Exception - error in processing request
      • cancelJobForJob

        public static Response cancelJobForJob()
                                        throws Exception
        Example on how to call CancelJobs cancelJobForJob method. cancelJobForJob accepts a jobName and jobId values which will be used to cancel its job.
        Returns:
        response http Response object
        Throws:
        Exception - error in processing request
      • cancelJob

        public static Response cancelJob()
                                  throws Exception
        Example on how to call CancelJobs cancelJob method. cancelJob accepts a jobName and jobId values which will be used to cancel its job.
        Returns:
        response http Response object
        Throws:
        Exception - error in processing request