Class JmxMBeanAgent

java.lang.Object
org.apache.uima.internal.util.JmxMBeanAgent

public class JmxMBeanAgent extends Object
Utility class for registering MBeans with a JMX MBeanServer. This allows AnalysisEngine performance stats to be monitored through JMX, for example.
  • Constructor Details

    • JmxMBeanAgent

      public JmxMBeanAgent()
  • Method Details

    • registerMBean

      public static void registerMBean(ManagementObject aMBean, Object aMBeanServerO)
      Register an MBean with the MBeanServer.
      Parameters:
      aMBean - the MBean to register
      aMBeanServerO - server to register with. If null, the platform MBeanServer will be used if we are running under Java 1.5. Earlier versions of Java did not have a platform MBeanServer; in that case, this method will do nothing.
    • unregisterMBean

      public static void unregisterMBean(ManagementObject aMBean, Object aMBeanServerO)
      Unregister an MBean from the MBeanServer.
      Parameters:
      aMBean - the MBean to register
      aMBeanServerO - server to unregister from. If null, the platform MBeanServer will be used if we are running under Java 1.5. Earlier versions of Java did not have a platform MBeanServer; in that case, this method will do nothing.