Class SystemLogHandler
- java.lang.Object
-
- io.openems.edge.controller.api.websocket.SystemLogHandler
-
public class SystemLogHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SystemLogHandler(WebsocketApi parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handlePaxLoggingEvent(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
Handles a PaxLoggingEvent and sends a SystemLogNotification to all subscribed UI sessions.java.util.concurrent.CompletableFuture<JsonrpcResponseSuccess>
handleSubscribeSystemLogRequest(java.lang.String token, SubscribeSystemLogRequest request)
Handles aSubscribeSystemLogRequest
.
-
-
-
Constructor Detail
-
SystemLogHandler
public SystemLogHandler(WebsocketApi parent)
-
-
Method Detail
-
handleSubscribeSystemLogRequest
public java.util.concurrent.CompletableFuture<JsonrpcResponseSuccess> handleSubscribeSystemLogRequest(java.lang.String token, SubscribeSystemLogRequest request) throws OpenemsError.OpenemsNamedException
Handles aSubscribeSystemLogRequest
.- Parameters:
token
- the UI session tokenrequest
- theSubscribeSystemLogRequest
- Returns:
- a reply
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
handlePaxLoggingEvent
public void handlePaxLoggingEvent(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
Handles a PaxLoggingEvent and sends a SystemLogNotification to all subscribed UI sessions.- Parameters:
event
- the event
-
-