Class AgentLoader


  • public class AgentLoader
    extends java.lang.Object
    This class contains methods for attaching the agent.
    • Constructor Detail

      • AgentLoader

        AgentLoader()
    • Method Detail

      • 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 java.lang.String[] createProperties​(int port)