java-runtime-decompiler icon indicating copy to clipboard operation
java-runtime-decompiler copied to clipboard

Implement permanent agent

Open judovana opened this issue 4 years ago • 4 comments

as current agent have also its benefits, it would be nice if this behaviour woudl be configurable through agent arguments.

judovana avatar Oct 11 '21 16:10 judovana

Was thinkng about this a bit.

  • we have to do agent uniq per vm. Another instance must be prohibited
    • same approach as bytmenas proeprty shoud be used
  • i thik it still have sense to keep single usage agent
  • for the pernament agents, a config file of vmID port must be ketp in user space
  • gui msut be able to visualise this file (and offer some disconnect button)
    • gui shoudl offer the checbox pernament/temporary agent
  • cli ust be able to visualise it
    • cli must be able to install/uninstall agent
  • and option to clean up remainng agents should be included

implementation itself

  • if agent is about to be attached, it first check if there is already an known connection in the file
  • if so, then it reuses that
  • if not, then it creates new one. If the connectionshoudl be pernament, mark itsel fin file

Once vm is changed, or cli ends, then all non-pernament agents have to be detahced and closed. On contrary, all pernament should be jsut disconnected.

judovana avatar Nov 05 '21 15:11 judovana

maybe the penament agent shoudl be default in gui (with question about disconnecting onclose). Cli will need switch pernament/temoral whweere efault is temporal for all read operations, and pernament is default for all write operations

judovana avatar Nov 05 '21 15:11 judovana

https://github.com/pmikova/java-runtime-decompiler/pull/218

judovana avatar Nov 07 '21 16:11 judovana

the pernament agent is now done. muc more work is needed for other types of agents

judovana avatar Nov 11 '22 09:11 judovana

Finishec

judovana avatar Oct 14 '23 09:10 judovana