Package com.hazelcast.config
Class MetricsManagementCenterConfig
java.lang.Object
com.hazelcast.config.MetricsManagementCenterConfig
public class MetricsManagementCenterConfig extends Object
Management Center related metrics configuration.
- Since:
- 4.0
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_METRICS_RETENTION_SECONDS
Default retention period for metrics. -
Constructor Summary
Constructors Constructor Description MetricsManagementCenterConfig()
MetricsManagementCenterConfig(MetricsManagementCenterConfig managementCenterConfig)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getRetentionSeconds()
Returns the number of seconds the metrics will be retained on the instance.int
hashCode()
boolean
isEnabled()
Returns whether metrics will be exposed to Hazelcast Management Center.MetricsManagementCenterConfig
setEnabled(boolean enabled)
Enables exposing metrics to Hazelcast Management Center.MetricsManagementCenterConfig
setRetentionSeconds(int retentionSeconds)
Sets the number of seconds the metrics will be retained on the instance.String
toString()
-
Field Details
-
DEFAULT_METRICS_RETENTION_SECONDS
public static final int DEFAULT_METRICS_RETENTION_SECONDSDefault retention period for metrics.- See Also:
- Constant Field Values
-
-
Constructor Details
-
MetricsManagementCenterConfig
public MetricsManagementCenterConfig() -
MetricsManagementCenterConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether metrics will be exposed to Hazelcast Management Center. If enabled, Hazelcast Management Center will be able to read out the collected metrics from this member. 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 to Hazelcast Management Center is enabled.- See Also:
BaseMetricsConfig.isEnabled()
-
setEnabled
Enables exposing metrics to Hazelcast Management Center. If enabled, Hazelcast Management Center will be able to read out the recorded metrics from this member. It's enabled by default.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_MC_ENABLED
system property.- See Also:
setEnabled(boolean)
-
getRetentionSeconds
public int getRetentionSeconds()Returns the number of seconds the metrics will be retained on the instance. -
setRetentionSeconds
Sets the number of seconds the metrics will be retained on the instance. By default, metrics are retained for 5 seconds (that is for one collection of metrics values, if defaultBaseMetricsConfig.setCollectionFrequencySeconds(int)
interval seconds is used). More retention means more heap memory, but allows for longer client hiccups without losing a value (for example to restart the Management Center).May be overridden by
ClusterProperty.METRICS_MC_RETENTION
system property. -
equals
-
hashCode
public final int hashCode() -
toString
-