Class CoreJsonRpcRequestHandlerImpl

java.lang.Object
io.openems.backend.common.component.AbstractOpenemsBackendComponent
io.openems.backend.core.jsonrpcrequesthandler.CoreJsonRpcRequestHandlerImpl
All Implemented Interfaces:
JsonRpcRequestHandler

public class CoreJsonRpcRequestHandlerImpl extends AbstractOpenemsBackendComponent implements JsonRpcRequestHandler
  • Field Details

    • edgeWebsocket

      protected volatile EdgeWebsocket edgeWebsocket
    • metadata

      protected volatile Metadata metadata
    • appCenterMetadata

      protected volatile AppCenterMetadata.UiData appCenterMetadata
    • timedataManager

      protected volatile TimedataManager timedataManager
    • config

      protected io.openems.backend.core.jsonrpcrequesthandler.Config config
  • Constructor Details

    • CoreJsonRpcRequestHandlerImpl

      public CoreJsonRpcRequestHandlerImpl()
  • Method Details

    • handleRequest

      public CompletableFuture<? extends JsonrpcResponseSuccess> handleRequest(String context, User user, JsonrpcRequest request) throws OpenemsError.OpenemsNamedException
      Handles a JSON-RPC Request.
      Specified by:
      handleRequest in interface JsonRpcRequestHandler
      Parameters:
      context - the Logger context, i.e. the name of the parent source
      user - the User
      request - the JsonrpcRequest
      Returns:
      the JSON-RPC Success Response Future
      Throws:
      OpenemsError.OpenemsNamedException - on error
    • logInfo

      protected void logInfo(String context, String message)
      Log an info message including the Handler name.
      Parameters:
      context - the Logger context, i.e. the name of the parent source
      message - the Info-message
    • logWarn

      protected void logWarn(String context, String message)
      Log a warn message including the Handler name.
      Parameters:
      context - the Logger context, i.e. the name of the parent source
      message - the Warn-message
    • logError

      protected void logError(String context, String message)
      Log an error message including the Handler name.
      Parameters:
      context - the Logger context, i.e. the name of the parent source
      message - the Error-message