Class AgentLoader

java.lang.Object
org.jrd.backend.core.AgentLoader

public class AgentLoader extends Object
This class contains methods for attaching the agent.
  • Field Details

  • Constructor Details

    • AgentLoader

      AgentLoader()
  • Method Details

    • attach

      public int attach(int pid, AgentConfig aconf)
      This method handles the attachment of a decompiler agent to given VM.
      Parameters:
      pid - PID of the VM
      Returns:
      port number if successful, else INVALID_PORT
    • attachImpl

      public static int attachImpl(int pid, AgentConfig aconf)
    • findPort

      private static int findPort()
    • createProperties

      private static String[] createProperties(int port)