Class IssueConsole
- java.lang.Object
-
- zowe.client.sdk.zosconsole.method.IssueConsole
-
public class IssueConsole extends Object
Issue MVS Console commands by using a system console- Version:
- 4.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description IssueConsole(ZosConnection connection)
IssueCommand constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsoleResponse
issueCommand(String command)
Issue an MVS console command on default console name (Defcn) done synchronously - meaning solicited (direct command responses) are gathered immediately after the command is issued.ConsoleResponse
issueCommand(String command, String consoleName)
Issue an MVS console command on a given console name done synchronously - meaning solicited (direct command responses) are gathered immediately after the command is issued.ConsoleResponse
issueCommandCommon(String consoleName, IssueConsoleParams params)
Issue an MVS console command on a given console name driven by IssueConsoleParams settings done synchronously
-
-
-
Constructor Detail
-
IssueConsole
public IssueConsole(ZosConnection connection)
IssueCommand constructor- Parameters:
connection
- for connection information, see ZosConnection object
-
-
Method Detail
-
issueCommand
public ConsoleResponse issueCommand(String command) throws ZosmfRequestException
Issue an MVS console command on default console name (Defcn) 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.- Parameters:
command
- string value that represents command to issue- Returns:
- ConsoleResponse object
- Throws:
ZosmfRequestException
- request error state
-
issueCommand
public ConsoleResponse issueCommand(String command, String consoleName) throws ZosmfRequestException
Issue an MVS console command on a given console name 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.- Parameters:
command
- string value representing console command to issueconsoleName
- name of the console that is used to issue the command- Returns:
- ConsoleResponse object
- Throws:
ZosmfRequestException
- request error state
-
issueCommandCommon
public ConsoleResponse issueCommandCommon(String consoleName, IssueConsoleParams params) throws ZosmfRequestException
Issue an MVS console command on a given console name driven by IssueConsoleParams settings done synchronously- Parameters:
consoleName
- name of the console that is used to issue the commandparams
- synchronous console issue parameters, see ZosmfIssueParams object- Returns:
- command response on resolve, see ZosmfIssueResponse object
- Throws:
ZosmfRequestException
- request error state
-
-