Package org.jrd.agent

Class Main


  • public class Main
    extends Object
    This class contains agent's premain and agentmain methods.
    Author:
    pmikova
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • premain

        public static void premain​(String agentArgs,
                                   Instrumentation inst)
        Premain method is executed when the agent is loaded. It sets the port and host name from agentArgs and starts the listener thread.
        Parameters:
        agentArgs - arguments with parameters for listener
        inst - instance of instrumentation of given VM
      • agentmain

        public static void agentmain​(String args,
                                     Instrumentation inst)
        This method only calls the premain
        Parameters:
        args - arguments with parameters for listener
        inst - instance of instrumentation of given VM