Class AgentFinder

java.lang.Object
clazzfish.monitor.jmx.AgentFinder

public final class AgentFinder extends Object
The class AgentFinder was introduced to simplify the communication with the ClasspathAgent.
Since:
3.0 (17.11.25)
Author:
oboehm
  • Constructor Details

    • AgentFinder

      public AgentFinder()
    • AgentFinder

      public AgentFinder(ObjectInstance agentMBean)
  • Method Details

    • isAgentAvailable

      public boolean isAgentAvailable()
      Checks if the ClasspathAgent is available as MBean. The ClasspathAgent is needed for classloaders which are not directly supported (e.g. IBM's classloader of their JDK).
      Returns:
      true, if is agent available
    • isDumping

      public boolean isDumping()
    • getDumpURI

      public URI getDumpURI() throws JMException
      Throws:
      JMException
    • setDumpURI

      public void setDumpURI(URI uri)
    • getAttribute

      public <T> T getAttribute(String name, Class<T> type) throws JMException
      Throws:
      JMException
    • getLoadedClasses

      public Class<?>[] getLoadedClasses() throws JMException
      Throws:
      JMException