Class ServerAgent


  • public class ServerAgent
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.instrument.Instrumentation inst  
      static java.lang.Boolean isAgentProxy  
      static java.lang.Boolean isAutoloadLibraries  
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerAgent()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addJVMClassPath​(java.lang.String path)  
      static void addJVMClassPath​(java.util.jar.JarFile file)  
      static long getObjSize​(java.lang.Object obj)  
      static boolean isAgentStarted()  
      static void loadLibraries​(java.nio.file.Path dir)  
      static void premain​(java.lang.String agentArgument, java.lang.instrument.Instrumentation instrumentation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isAutoloadLibraries

        public static final java.lang.Boolean isAutoloadLibraries
      • isAgentProxy

        public static final java.lang.Boolean isAgentProxy
      • inst

        public static java.lang.instrument.Instrumentation inst
    • Constructor Detail

      • ServerAgent

        public ServerAgent()
    • Method Detail

      • addJVMClassPath

        public static void addJVMClassPath​(java.lang.String path)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • addJVMClassPath

        public static void addJVMClassPath​(java.util.jar.JarFile file)
      • isAgentStarted

        public static boolean isAgentStarted()
      • getObjSize

        public static long getObjSize​(java.lang.Object obj)
      • premain

        public static void premain​(java.lang.String agentArgument,
                                   java.lang.instrument.Instrumentation instrumentation)
      • loadLibraries

        public static void loadLibraries​(java.nio.file.Path dir)