Class AddAppInstance
java.lang.Object
io.openems.edge.core.appmanager.jsonrpc.AddAppInstance
- All Implemented Interfaces:
EndpointRequestType<AddAppInstance.Request,
AddAppInstance.Response>
public class AddAppInstance
extends Object
implements EndpointRequestType<AddAppInstance.Request,AddAppInstance.Response>
Adds an
OpenemsAppInstance
.
Request:
{ "jsonrpc": "2.0", "id": "UUID", "method": "addAppInstance", "params": { "appId": string, "properties": {} } }
Response:
{
"jsonrpc": "2.0",
"id": "UUID",
"result": {
"instance": OpenemsAppInstance.toJsonObject()
"warnings": string[]
}
}
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the request method.Gets theJsonSerializer
for the request.Gets theJsonSerializer
for the response.
-
Constructor Details
-
AddAppInstance
public AddAppInstance()
-
-
Method Details
-
getMethod
Description copied from interface:EndpointRequestType
Gets the name of the request method.- Specified by:
getMethod
in interfaceEndpointRequestType<AddAppInstance.Request,
AddAppInstance.Response> - Returns:
- the method name
-
getRequestSerializer
Description copied from interface:EndpointRequestType
Gets theJsonSerializer
for the request. Used to convert the received json into a java object.- Specified by:
getRequestSerializer
in interfaceEndpointRequestType<AddAppInstance.Request,
AddAppInstance.Response> - Returns:
- the request
JsonSerializer
-
getResponseSerializer
Description copied from interface:EndpointRequestType
Gets theJsonSerializer
for the response. Used to convert the response java object into a json string.- Specified by:
getResponseSerializer
in interfaceEndpointRequestType<AddAppInstance.Request,
AddAppInstance.Response> - Returns:
- the response
JsonSerializer
-