java.lang.Object
com.tlcsdm.core.powershell.PowerShellResponse
Response of PowerShell command. This object encapsulate all the useful
returned information
- 作者:
- Javier Garcia Alonso
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Retrieves the content returned by the executed commandbooleanisError()True if the command could not be correctly executed (timeout or unexpected error)booleanTrue if the command finished in timeout
-
字段详细资料
-
error
private final boolean error -
commandOutput
-
timeout
private final boolean timeout
-
-
构造器详细资料
-
PowerShellResponse
PowerShellResponse(boolean isError, String commandOutput, boolean timeout)
-
-
方法详细资料
-
isError
public boolean isError()True if the command could not be correctly executed (timeout or unexpected error)If you want to check if the command itself finished in error, use the method
PowerShell.isLastCommandInError()instead- 返回:
- boolean value
-
getCommandOutput
Retrieves the content returned by the executed command- 返回:
- boolean value
-
isTimeout
public boolean isTimeout()True if the command finished in timeout- 返回:
- boolean value
-