Package com.hazelcast.config
Class MetricsManagementCenterConfig
java.lang.Object
com.hazelcast.config.MetricsManagementCenterConfig
Management Center related metrics configuration.
- Since:
- 4.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default retention period for metrics. -
Constructor Summary
ConstructorDescriptionMetricsManagementCenterConfig
(MetricsManagementCenterConfig managementCenterConfig) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
int
Returns the number of seconds the metrics will be retained on the instance.final int
hashCode()
boolean
Returns whether metrics will be exposed to Hazelcast Management Center.setEnabled
(boolean enabled) Enables exposing metrics to Hazelcast Management Center.setRetentionSeconds
(int retentionSeconds) Sets the number of seconds the metrics will be retained on the instance.toString()
-
Field Details
-
DEFAULT_METRICS_RETENTION_SECONDS
public static final int DEFAULT_METRICS_RETENTION_SECONDSDefault retention period for metrics.- See Also:
-
-
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:
-
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:
-
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
-