Class EdgeConfigNotification
- 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.EdgeConfigNotification
-
public class EdgeConfigNotification extends JsonrpcNotification
Represents a JSON-RPC Notification for OpenEMS Edge configuration.{ "jsonrpc": "2.0", "method": "edgeConfig", "params": {
EdgeConfig.toJson()
} }
-
-
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 EdgeConfigNotification(EdgeConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EdgeConfigNotification
from(com.google.gson.JsonObject j)
Parses aJsonObject
to aEdgeConfigNotification
.static EdgeConfigNotification
from(JsonrpcNotification n)
Parses aJsonrpcNotification
to aEdgeConfigNotification
.EdgeConfig
getConfig()
com.google.gson.JsonObject
getParams()
Gets the paramsJsonObject
of theJsonrpcRequest
.-
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod, toJsonObject
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, toString
-
-
-
-
Field Detail
-
METHOD
public static final java.lang.String METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EdgeConfigNotification
public EdgeConfigNotification(EdgeConfig config)
-
-
Method Detail
-
from
public static EdgeConfigNotification from(com.google.gson.JsonObject j) throws OpenemsError.OpenemsNamedException
Parses aJsonObject
to aEdgeConfigNotification
.- Parameters:
j
- theJsonObject
- Returns:
- the
EdgeConfigNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
from
public static EdgeConfigNotification from(JsonrpcNotification n) throws OpenemsError.OpenemsNamedException
Parses aJsonrpcNotification
to aEdgeConfigNotification
.- Parameters:
n
- theJsonrpcNotification
- Returns:
- the
EdgeConfigNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
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
-
getConfig
public EdgeConfig getConfig()
-
-