Class MetricsJmxConfig

java.lang.Object
com.hazelcast.config.MetricsJmxConfig

public class MetricsJmxConfig extends Object
JMX related metrics configuration.
Since:
4.0
  • Constructor Details

    • MetricsJmxConfig

      public MetricsJmxConfig()
    • MetricsJmxConfig

      public MetricsJmxConfig(MetricsJmxConfig jmxConfig)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether metrics will be exposed through JMX MBeans. It's enabled by default.

      This configuration acts as a fine-tuning option beyond enabling/disabling the Metrics collection entirely via the BaseMetricsConfig.isEnabled() master switch.

      Returns:
      true if exposing the metrics on JMX is enabled.
      See Also:
    • setEnabled

      @Nonnull public MetricsJmxConfig setEnabled(boolean enabled)
      Enables metrics exposure through JMX. It's enabled by default. Metric values are collected in the BaseMetricsConfig.getCollectionFrequencySeconds() metric collection interval} and written to a set of MBeans.

      This configuration acts as a fine-tuning option beyond enabling/disabling the Metrics collection entirely via the enabled master switch.

      May be overridden by ClientProperty.METRICS_JMX_ENABLED system property.

    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object