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:
- 3.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description ZosLog(ZosConnection connection)GetZosLog constructorZosLog(ZosConnection connection, ZosmfRequest 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 and return log data.
-
-
-
Constructor Detail
-
ZosLog
public ZosLog(ZosConnection connection)
GetZosLog constructor- Parameters:
connection- connection information, see ZosConnection object
-
ZosLog
public ZosLog(ZosConnection connection, ZosmfRequest request)
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
-
-
Method Detail
-
issueCommand
public ZosLogReply issueCommand(ZosLogParams params) throws ZosmfRequestException
Issue a z/OSMF log command and return log data.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:
ZosmfRequestException- request error state
-
-