Class GetEdgesChannelsValuesRequest
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
io.openems.common.jsonrpc.base.JsonrpcRequest
io.openems.backend.common.jsonrpc.request.GetEdgesChannelsValuesRequest
Represents a JSON-RPC Request for 'getChannelsValues'.
{ "jsonrpc": "2.0", "id": "UUID", "method": "getEdgesChannelsValues", "params": { "ids": string[] // Edge-IDs "channels": string[] // Channel-IDs } }
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcRequest
DEFAULT_TIMEOUT_SECONDS, id, NO_TIMEOUT, timeoutOpt
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChannel
(ChannelAddress address) Adds aChannelAddress
.void
Adds a Edge-ID.CreateGetEdgesChannelsValuesRequest
from a templateJsonrpcRequest
.Gets theChannelAddress
es.Gets the Edge-IDs.com.google.gson.JsonObject
Gets the paramsJsonObject
of theJsonrpcRequest
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcRequest
getId, getTimeout, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
GetEdgesChannelsValuesRequest
public GetEdgesChannelsValuesRequest()
-
-
Method Details
-
from
public static GetEdgesChannelsValuesRequest from(JsonrpcRequest r) throws OpenemsError.OpenemsNamedException CreateGetEdgesChannelsValuesRequest
from a templateJsonrpcRequest
.- Parameters:
r
- the templateJsonrpcRequest
- Returns:
- the
GetEdgesChannelsValuesRequest
- Throws:
OpenemsError.OpenemsNamedException
- on parse error
-
addEdgeId
Adds a Edge-ID.- Parameters:
edgeId
- the Edge-ID
-
getEdgeIds
Gets the Edge-IDs.- Returns:
- set of Edge-IDs.
-
addChannel
Adds aChannelAddress
.- Parameters:
address
- theChannelAddress
-
getChannels
Gets theChannelAddress
es.- Returns:
- the
ChannelAddress
es
-
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
-