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