Class ExecuteSystemCommandRequest


  • public class ExecuteSystemCommandRequest
    extends JsonrpcRequest
    Represents a JSON-RPC Request to execute a system command on OpenEMS Edge.
     {
       "jsonrpc": "2.0",
       "id": "UUID",
       "method": "executeSystemCommand",
       "params": {
            "command": string,
            "runInBackground"?: boolean = false, // run the command in background (true) or in foreground (false)
            "timeoutSeconds"?: number = 5, // interrupt the command after ... seconds
            "username"?: string,
            "password"?: string,
       }
     }
     
    • Constructor Detail

      • ExecuteSystemCommandRequest

        public ExecuteSystemCommandRequest​(java.lang.String command,
                                           boolean runInBackground,
                                           int timeoutSeconds,
                                           java.util.Optional<java.lang.String> username,
                                           java.util.Optional<java.lang.String> password)
      • ExecuteSystemCommandRequest

        public ExecuteSystemCommandRequest​(java.util.UUID id,
                                           java.lang.String command,
                                           boolean runInBackground,
                                           int timeoutSeconds,
                                           java.util.Optional<java.lang.String> username,
                                           java.util.Optional<java.lang.String> password)