Class SystemLogNotification
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.SystemLogNotification
Represents a JSON-RPC Notification for sending the current system log.
{
"jsonrpc": "2.0",
"method": "systemLog",
"params": {
"line": SystemLog.toJson()
}
}
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SystemLogNotification
Parses aJsonrpcNotification
to aSystemLogNotification
.static SystemLogNotification
fromPaxLoggingEvent
(org.ops4j.pax.logging.spi.PaxLoggingEvent event) Creates aSystemLogNotification
from aPaxLoggingEvent
.com.google.gson.JsonObject
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, from, toString
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
SystemLogNotification
-
-
Method Details
-
from
public static SystemLogNotification from(JsonrpcNotification n) throws OpenemsError.OpenemsNamedException Parses aJsonrpcNotification
to aSystemLogNotification
.- Parameters:
n
- theJsonrpcNotification
- Returns:
- the
SystemLogNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
fromPaxLoggingEvent
public static SystemLogNotification fromPaxLoggingEvent(org.ops4j.pax.logging.spi.PaxLoggingEvent event) Creates aSystemLogNotification
from aPaxLoggingEvent
.- Parameters:
event
- thePaxLoggingEvent
- Returns:
- the
SystemLogNotification
-
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
-