Class MSTRJMXManager


  • public class MSTRJMXManager
    extends java.lang.Object

    MicroStrategy Java SDK supports Java Management Extensions (JMX).

    New MicroStrategy MBean must be pre-registered in init().

    To enable JMX for MicroStrategy MBean the JVM must be configured with the System property "-Dmstr.jmx". Note that any of the following is also valid -Dmstr.jmx=1 -Dmstr.jmx=true -Dmstr.jmx=abc but the following will leave the feature disabled: -Dmstr.jmx=0 -Dmstr.jmx=false

    JMX will still need to be enabled for the JVM. Here are the System properties required to setup remote JMX access at port 7879:

     -Dcom.sun.management.jmxremote.port=7879
     -Dcom.sun.management.jmxremote.ssl=false
     -Dcom.sun.management.jmxremote.authenticate=false

    Java jconsole (available in a JDK install) can then be used to connect to the server at the given port (in this case 7879).

    See Also:
    com.microstrategy.webapi.SystemInfo#isEnabled(String)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SYSTEM_PROPERTY_MSTR_JMX
      Allows registration of all MicroStrategy MBean instances.
    • Constructor Summary

      Constructors 
      Constructor Description
      MSTRJMXManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object get​(java.lang.Class<?> mbean)  
      static void init()
      Register your MicroStrategy MBean classes here with JMX.
      • Methods inherited from class java.lang.Object

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

      • SYSTEM_PROPERTY_MSTR_JMX

        public static final java.lang.String SYSTEM_PROPERTY_MSTR_JMX
        Allows registration of all MicroStrategy MBean instances.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MSTRJMXManager

        public MSTRJMXManager()
    • Method Detail

      • init

        public static void init()
        Register your MicroStrategy MBean classes here with JMX.
      • get

        public static java.lang.Object get​(java.lang.Class<?> mbean)
        Parameters:
        mbean - class of the MBean
        Returns:
        registered instance (may return NULL)