Split plugins and process handling

I’m working on a split-mode plugin (backend, shared, frontend).

But I’m unsure how processes should be handled.

For example

  • The backend launches a process
  • The frontend displays a ConsoleView. I’m currently forwarding the messages to log with an RPC service and a Flow<…>.
  • Now I would like to show a stop and restart button in the frontend.

Would I have to reimplement all the process handling actions with an RPC service or is there a better way to handle processes in a split-mode plugin?

Thanks!

You are doing everything right!
ProcessHandler is a purely backend api, and to control it it is indeed necessary to implement an RPC with necessary methods.

At the moment IJ platform does not provide a ready made proxy for the processes