Class JmxRegistration

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Void>

    class JmxRegistration
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Void>
    Access to JMX APIs are encapsulated in this class to allow the JaCoCo runtime on platforms without JMX support (e.g Android).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String JMX_NAME  
      private javax.management.ObjectName name  
      private javax.management.MBeanServer server  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Void call()
      De-register the agent again.
      • Methods inherited from class java.lang.Object

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

      • server

        private final javax.management.MBeanServer server
      • name

        private final javax.management.ObjectName name
    • Constructor Detail

      • JmxRegistration

        JmxRegistration​(IAgent agent)
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • call

        public java.lang.Void call()
                            throws java.lang.Exception
        De-register the agent again.
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Void>
        Throws:
        java.lang.Exception