Class ExecuteSystemCommandResponse
- java.lang.Object
-
- io.openems.common.jsonrpc.base.JsonrpcMessage
-
- io.openems.common.jsonrpc.base.JsonrpcResponse
-
- io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
-
- io.openems.edge.core.host.jsonrpc.ExecuteSystemCommandResponse
-
public class ExecuteSystemCommandResponse extends JsonrpcResponseSuccess
JSON-RPC Response to "executeSystemCommand" Request.{ "jsonrpc": "2.0", "id": "UUID", "result": { "stdout": string[], "stderr": string[], "exitcode": number (exit code of application: 0 = successful; otherwise error) } }
-
-
Field Summary
-
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
-
Constructor Summary
Constructors Constructor Description ExecuteSystemCommandResponse(java.util.UUID id, java.lang.String[] stdout, java.lang.String[] stderr, int exitcode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExitCode()
com.google.gson.JsonObject
getResult()
Gets the result of thisJsonrpcResponseSuccess
.java.lang.String[]
getStderr()
java.lang.String[]
getStdout()
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
from, toJsonObject
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponse
from, getId
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
toString
-
-
-
-
Method Detail
-
getResult
public com.google.gson.JsonObject getResult()
Description copied from class:JsonrpcResponseSuccess
Gets the result of thisJsonrpcResponseSuccess
.- Specified by:
getResult
in classJsonrpcResponseSuccess
- Returns:
- a JsonObject with the 'result' property of the response
-
getStdout
public java.lang.String[] getStdout()
-
getStderr
public java.lang.String[] getStderr()
-
getExitCode
public int getExitCode()
-
-