Package io.openems.backend.edgewebsocket
Class SystemLogHandler
java.lang.Object
io.openems.backend.edgewebsocket.SystemLogHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addSubscriptionId
(String edgeId, UUID websocketId) Adds a subscription Token for the given Edge-ID.getSubscribedWebsocketIds
(String edgeId) Gets all subscription Tokens for the given Edge-ID.handleSubscribeSystemLogRequest
(String edgeId, User user, UUID websocketId, SubscribeSystemLogRequest request) Handles aSubscribeSystemLogRequest
.void
handleSystemLogNotification
(String edgeId, SystemLogNotification notification) Handles aSystemLogNotification
, i.e.protected void
removeSubscriptionId
(String edgeId, UUID websocketId) Removes a subscription Token from the given Edge-ID.
-
Constructor Details
-
SystemLogHandler
-
-
Method Details
-
handleSubscribeSystemLogRequest
public CompletableFuture<JsonrpcResponseSuccess> handleSubscribeSystemLogRequest(String edgeId, User user, UUID websocketId, SubscribeSystemLogRequest request) throws OpenemsError.OpenemsNamedException Handles aSubscribeSystemLogRequest
.- Parameters:
edgeId
- the Edge-IDuser
- theUser
websocketId
- the id of the UI websocket connectionrequest
- theSubscribeSystemLogRequest
- Returns:
- a reply
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
handleSystemLogNotification
Handles aSystemLogNotification
, i.e. the replies toSubscribeSystemLogRequest
.- Parameters:
edgeId
- the Edge-IDnotification
- theSystemLogNotification
-
addSubscriptionId
Adds a subscription Token for the given Edge-ID.- Parameters:
edgeId
- the Edge-IDwebsocketId
- the id of the UI websocket connection
-
removeSubscriptionId
Removes a subscription Token from the given Edge-ID.- Parameters:
edgeId
- the Edge-IDwebsocketId
- the id of the UI websocket connection
-
getSubscribedWebsocketIds
Gets all subscription Tokens for the given Edge-ID.- Parameters:
edgeId
- the Edge-ID- Returns:
- a Set of Tokens; or null
-