Package com.hazelcast.config
Class MetricsJmxConfig
- java.lang.Object
-
- com.hazelcast.config.MetricsJmxConfig
-
public class MetricsJmxConfig extends java.lang.Object
JMX related metrics configuration.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description MetricsJmxConfig()
MetricsJmxConfig(MetricsJmxConfig jmxConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isEnabled()
Returns whether metrics will be exposed through JMX MBeans.MetricsJmxConfig
setEnabled(boolean enabled)
Enables metrics exposure through JMX.java.lang.String
toString()
-
-
-
Constructor Detail
-
MetricsJmxConfig
public MetricsJmxConfig()
-
MetricsJmxConfig
public MetricsJmxConfig(MetricsJmxConfig jmxConfig)
-
-
Method Detail
-
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:
BaseMetricsConfig.isEnabled()
-
setEnabled
@Nonnull public MetricsJmxConfig setEnabled(boolean enabled)
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
ClusterProperty.METRICS_JMX_ENABLED
system property.
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-