Package com.hazelcast.config
Class MetricsJmxConfig
java.lang.Object
com.hazelcast.config.MetricsJmxConfig
JMX related metrics configuration.
- Since:
- 4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final int
hashCode()
boolean
Returns whether metrics will be exposed through JMX MBeans.setEnabled
(boolean enabled) Enables metrics exposure through JMX.toString()
-
Constructor Details
-
MetricsJmxConfig
public MetricsJmxConfig() -
MetricsJmxConfig
-
-
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
Enables metrics exposure through JMX. It's enabled by default. Metric values are collected in theBaseMetricsConfig.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
-
hashCode
public final int hashCode() -
toString
-