Package examples.zosjobs
Class DeleteJobs
- java.lang.Object
-
- examples.ZosConnection
-
- examples.zosjobs.DeleteJobs
-
public class DeleteJobs extends ZosConnection
Class example to showcase DeleteJobs functionality.- Version:
- 1.0
- Author:
- Leonid Baranov
-
-
Field Summary
-
Fields inherited from class examples.ZosConnection
hostName, password, userName, zosmfPort
-
-
Constructor Summary
Constructors Constructor Description DeleteJobs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResponsedeleteJob()Example on how to call DeleteJobs deleteJob method.static ResponsedeleteJobForJob()Example on how to call DeleteJobs deleteJobForJob method.static ResponsedeleteJobsCommon()Example on how to call DeleteJobs deleteJobCommon method.static ResponsedeleteJobsCommonWithVersion(String version)Example on how to call DeleteJobs deleteJobCommon method.static voidmain(String[] args)Main method defines z/OSMF host and user connection and other parameters needed to showcase DeleteJobs functionality.
-
-
-
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
-
-