Class WsData

java.lang.Object
io.openems.common.websocket.WsData
io.openems.backend.edgewebsocket.WsData

public class WsData extends WsData
  • Field Details

    • edgeCache

      public final EdgeCache edgeCache
  • Constructor Details

    • WsData

      public WsData()
  • Method Details

    • assertEdgeId

      public String assertEdgeId(JsonrpcMessage message) throws OpenemsException
      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 error
      timeout - the timeout length
      unit - the TimeUnit of the timeout
      Returns:
      the Edge-ID
      Throws:
      OpenemsError.OpenemsNamedException - on error
      OpenemsException
    • setEdgeId

      public void setEdgeId(String edgeId)
    • getEdgeId

      public Optional<String> getEdgeId()
    • toString

      public String toString()
      Description copied from class: WsData
      Provides a specific toString method.
      Specified by:
      toString in class WsData
      Returns:
      a specific string for this instance