Package io.openems.backend.edgewebsocket
Class WsData
java.lang.Object
io.openems.common.websocket.WsData
io.openems.backend.edgewebsocket.WsData
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassertEdgeId
(JsonrpcMessage message) Asserts that the Edge-ID is available (i.e.assertEdgeIdWithTimeout
(JsonrpcMessage message, long timeout, TimeUnit unit) Asserts that the Edge-ID is available (i.e.void
toString()
Provides a specific toString method.Methods inherited from class io.openems.common.websocket.WsData
dispose, getWebsocket, handleJsonrpcResponse, send, send, setWebsocket
-
Field Details
-
edgeCache
-
-
Constructor Details
-
WsData
public WsData()
-
-
Method Details
-
assertEdgeId
Asserts that the Edge-ID is available (i.e. properly authenticated).- Parameters:
message
- a identification message on error- Returns:
- the Edge-ID
- Throws:
OpenemsException
- on error
-
assertEdgeIdWithTimeout
public String assertEdgeIdWithTimeout(JsonrpcMessage message, long timeout, TimeUnit unit) throws OpenemsException Asserts that the Edge-ID is available (i.e. properly authenticated) within a timeout.- Parameters:
message
- a identification message on errortimeout
- the timeout lengthunit
- theTimeUnit
of the timeout- Returns:
- the Edge-ID
- Throws:
OpenemsError.OpenemsNamedException
- on errorOpenemsException
-
setEdgeId
-
getEdgeId
-
toString
Description copied from class:WsData
Provides a specific toString method.
-