Class EdgeRpcNotification
- java.lang.Object
-
- io.openems.common.jsonrpc.base.JsonrpcMessage
-
- io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
-
- io.openems.common.jsonrpc.base.JsonrpcNotification
-
- io.openems.common.jsonrpc.notification.EdgeRpcNotification
-
public class EdgeRpcNotification extends JsonrpcNotification
Wraps a JSON-RPC Notification for a specific Edge-ID.{ "jsonrpc": "2.0", "method": "edgeRpc", "params": { "edgeId": string, "payload": JsonrpcNotification } }
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
METHOD
-
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
-
Constructor Summary
Constructors Constructor Description EdgeRpcNotification(java.lang.String edgeId, JsonrpcNotification payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEdgeId()
com.google.gson.JsonObject
getParams()
Gets the paramsJsonObject
of theJsonrpcRequest
.JsonrpcNotification
getPayload()
-
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod, toJsonObject
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
-
-
-
Field Detail
-
METHOD
public static final java.lang.String METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EdgeRpcNotification
public EdgeRpcNotification(java.lang.String edgeId, JsonrpcNotification payload)
-
-
Method Detail
-
getParams
public com.google.gson.JsonObject getParams()
Description copied from class:AbstractJsonrpcRequest
Gets the paramsJsonObject
of theJsonrpcRequest
.- Specified by:
getParams
in classAbstractJsonrpcRequest
- Returns:
- the params as
JsonObject
-
getEdgeId
public java.lang.String getEdgeId()
-
getPayload
public JsonrpcNotification getPayload()
-
-