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)
        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
      • findPort

        private int findPort()
      • createProperties

        private java.lang.String[] createProperties​(int port)
      • setDefaultConfig

        public static void setDefaultConfig​(AgentConfig defaultConfig)
      • getDefaultConfig

        public static AgentConfig getDefaultConfig()