Class JMXProvider

    • Field Detail

      • JMX_INSTRUMENT_ALIASES

        public static final String[] JMX_INSTRUMENT_ALIASES
    • Constructor Detail

      • JMXProvider

        public JMXProvider()
    • Method Detail

      • registerMBean

        protected void registerMBean​(JMXInstrument mBean)
        Register an MBean with the mbean server.
      • getMBeanServer

        public Set<MBeanServer> getMBeanServer()
        Returns the mbean server
      • createObjectName

        public static ObjectName createObjectName​(JMXInstrument instrument,
                                                  Map<String,​String> props)
                                           throws Exception
        Creates an object name for the supplied instrument and key properties
        Parameters:
        instrument - the instrument
        props - additional key properties
        Returns:
        the JMX object name
        Throws:
        Exception - a generic JMX-type exception
      • startInstrument

        public void startInstrument​(Instrument instrument)
        Start an instrument. Registers an mbean with the server.
        Parameters:
        instrument - this instrument to start
      • stopInstrument

        public void stopInstrument​(Instrument instrument,
                                   boolean force)
        Stop an instrument. Unregisters an mbean with the server.
        Parameters:
        instrument - the instrument to stop
        force - forces the stop if the instrument does not stop gracefully.