Class AgentController

    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
      • instrumentation

        private final java.lang.instrument.Instrumentation instrumentation
    • Constructor Detail

      • AgentController

        public AgentController​(java.lang.instrument.Instrumentation instrumentation,
                               TransformRegistry registry)
    • Method Detail

      • defineEventProbes

        public void defineEventProbes​(java.lang.String xmlDescription)
                               throws java.lang.Exception
        Description copied from interface: AgentControllerMXBean
        Reverts all existing instrumentation and then defines a new set of event probes to transform.
        Specified by:
        defineEventProbes in interface AgentControllerMXBean
        Parameters:
        xmlDescription - the XML snippet describing event probes to transform.
        Throws:
        java.lang.Exception - thrown when an event probe's specified class can not be retransformed.
      • retransformClasses

        private java.lang.Class<?>[] retransformClasses​(java.util.Set<java.lang.String> classNames)
      • retrieveEventProbes

        public java.lang.String retrieveEventProbes()
        Description copied from interface: AgentControllerMXBean
        Returns the most recent XML configuration that was successfully applied.
        Specified by:
        retrieveEventProbes in interface AgentControllerMXBean
        Returns:
        an XML snippet of the current configuration.
      • checkSecurity

        private void checkSecurity()