Package org.openjdk.jmc.agent.jmx
Class AgentController
java.lang.Object
org.openjdk.jmc.agent.jmx.AgentController
- All Implemented Interfaces:
AgentControllerMXBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Instrumentationprivate static final Loggerprivate final TransformRegistry -
Constructor Summary
ConstructorsConstructorDescriptionAgentController(Instrumentation instrumentation, TransformRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoiddefineEventProbes(String xmlDescription) Reverts all existing instrumentation and then defines a new set of event probes to transform.private Class<?>[]retransformClasses(Set<String> classNames) Returns the most recent XML configuration that was successfully applied.
-
Field Details
-
logger
-
instrumentation
-
registry
-
-
Constructor Details
-
AgentController
-
-
Method Details
-
defineEventProbes
Description copied from interface:AgentControllerMXBeanReverts all existing instrumentation and then defines a new set of event probes to transform.- Specified by:
defineEventProbesin interfaceAgentControllerMXBean- Parameters:
xmlDescription- the XML snippet describing event probes to transform.- Throws:
Exception- thrown when an event probe's specified class can not be retransformed.
-
retransformClasses
-
retrieveCurrentTransforms
- Specified by:
retrieveCurrentTransformsin interfaceAgentControllerMXBean
-
retrieveEventProbes
Description copied from interface:AgentControllerMXBeanReturns the most recent XML configuration that was successfully applied.- Specified by:
retrieveEventProbesin interfaceAgentControllerMXBean- Returns:
- an XML snippet of the current configuration.
-
checkSecurity
private void checkSecurity()
-