Class JmxObjectNameFactory

  • All Implemented Interfaces:

    public class JmxObjectNameFactory
    extends Object
    implements com.codahale.metrics.jmx.ObjectNameFactory
    Factory to create MBean names for a given metric.
    • Constructor Detail

      • JmxObjectNameFactory

        public JmxObjectNameFactory​(String reporterName,
                                    String domain,
                                    String... additionalProperties)
        Create ObjectName factory.
        reporterName - name of the reporter
        domain - JMX domain name
        additionalProperties - additional properties as key, value pairs.
    • Method Detail

      • getDomain

        public String getDomain()
        Return current domain.
      • getReporterName

        public String getReporterName()
        Return current reporterName.
      • createName

        public ObjectName createName​(String type,
                                     String currentDomain,
                                     String name)
        Create a hierarchical name.
        Specified by:
        createName in interface com.codahale.metrics.jmx.ObjectNameFactory
        type - metric class, eg. "counters", may be null for non-metric MBeans
        currentDomain - JMX domain
        name - object name