IssueCommand

class IssueCommand(var connection: ZOSConnection, var httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Issue MVS Console commands by using a system console

Constructors

Link copied to clipboard
fun IssueCommand(connection: ZOSConnection, httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Functions

Link copied to clipboard

Issue an MVS console command done synchronously - meaning solicited (direct command responses) are gathered immediately after the command is issued. However, after (according to the z/OSMF REST API documentation) approximately 3 seconds the response will be returned.

Link copied to clipboard
fun issueCommon(consoleName: String, commandParams: IssueRequestBody): IssueResponse

Issue an MVS console command, returns "raw" z/OSMF response

Link copied to clipboard

Issue an MVS console command in default console, returns "raw" z/OSMF response

Link copied to clipboard

Simple issue console command method. Does not accept parameters, so all defaults on the z/OSMF API are taken.

Properties

Link copied to clipboard
Link copied to clipboard
var httpClient: OkHttpClient
Link copied to clipboard
var response: Response<*>? = null