Class WsData


  • public class WsData
    extends WsData
    • Field Detail

      • edgeCache

        public final EdgeCache edgeCache
    • Constructor Detail

      • WsData

        public WsData()
    • Method Detail

      • assertEdgeId

        public java.lang.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 java.lang.String assertEdgeIdWithTimeout​(JsonrpcMessage message,
                                                        long timeout,
                                                        java.util.concurrent.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​(java.lang.String edgeId)
      • getEdgeId

        public java.util.Optional<java.lang.String> getEdgeId()
      • toString

        public java.lang.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