Package zowe.client.sdk.zoslogs.method
Class ZosLog
- java.lang.Object
-
- zowe.client.sdk.zoslogs.method.ZosLog
-
public class ZosLog extends Object
Get z/OS log via z/OSMF restful api- Version:
- 2.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description ZosLog(ZosConnection connection)GetZosLog constructorZosLog(ZosConnection connection, ZoweRequest request)Alternative GetZosLog constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZosLogReplyissueCommand(ZosLogParams params)Issue a z/OSMF log command, returns "raw" z/OSMF response.
-
-
-
Constructor Detail
-
ZosLog
public ZosLog(ZosConnection connection)
GetZosLog constructor- Parameters:
connection- connection information, see ZosConnection object
-
ZosLog
public ZosLog(ZosConnection connection, ZoweRequest request) throws Exception
Alternative GetZosLog constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.- Parameters:
connection- connection information, see ZosConnection objectrequest- any compatible ZoweRequest Interface object- Throws:
Exception- processing error
-
-
Method Detail
-
issueCommand
public ZosLogReply issueCommand(ZosLogParams params) throws Exception
Issue a z/OSMF log command, returns "raw" z/OSMF response.If API fails you may be missing APAR see PH35930 required for log operations.
- Parameters:
params- ZosLogParams object- Returns:
- ZosLogReply object with log messages/items
- Throws:
Exception- processing error
-
-