Class DeleteJobs


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

      • DeleteJobs

        public DeleteJobs()
    • 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 DeleteJobs functionality. Calls DeleteJobs example methods.
        Parameters:
        args - for main not used
        Throws:
        Exception - error in processing request
      • deleteJobsCommonWithVersion

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

        public static Response deleteJobsCommon()
                                         throws Exception
        Example on how to call DeleteJobs deleteJobCommon method. deleteJobCommon accepts a DeleteJobParams object with parameters filled needed to delete a given job.
        Returns:
        response http response object
        Throws:
        Exception - error in processing request
      • deleteJobForJob

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

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