Package org.jrd.agent

Class Main

java.lang.Object
org.jrd.agent.Main

public final class Main extends Object
This class contains agent's premain and agentmain methods.
  • Field Details

  • Constructor Details

    • Main

      private Main()
  • Method Details

    • premain

      public static void premain(String agentArgs, Instrumentation inst) throws Exception
      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
      Throws:
      Exception
    • agentmain

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

      public static void deregister(String loneliness)
    • checkLonelienss

      private static String checkLonelienss(String agentArgs)
    • equalsOrMatching

      public static boolean equalsOrMatching(ClassLoader candidate, String requested)
    • equalsOrMatching

      public static boolean equalsOrMatching(String candidate, String requested)