org.apache.solr.metrics.reporters

Class SolrJmxReporter

    • Method Detail

      • init

        public void init(PluginInfo pluginInfo)
        Initializes the reporter by finding (or creating) a MBeanServer and registering the metricManager's metric registry.
        Specified by:
        init in interface PluginInfoInitialized
        Overrides:
        init in class SolrMetricReporter
        Parameters:
        pluginInfo - the configuration for the reporter
      • close

        public void close()
        Stops the reporter from publishing metrics.
      • setDomain

        public void setDomain(String domain)
        Sets the domain with which MBeans are published. If none is set, the domain defaults to the name of the core.
        Parameters:
        domain - the domain
      • setServiceUrl

        public void setServiceUrl(String serviceUrl)
        Sets the service url for a JMX server. Note that this configuration is optional.
        Parameters:
        serviceUrl - the service url
      • setAgentId

        public void setAgentId(String agentId)
        Sets the agent id for a JMX server. Note that this configuration is optional.
        Parameters:
        agentId - the agent id
      • getMBeanServer

        public MBeanServer getMBeanServer()
        Retrieves the reporter's MBeanServer.
        Returns:
        the reporter's MBeanServer