public class MetricsManagementCenterConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_METRICS_RETENTION_SECONDS
Default retention period for metrics.
|
Constructor and Description |
---|
MetricsManagementCenterConfig() |
MetricsManagementCenterConfig(MetricsManagementCenterConfig managementCenterConfig) |
Modifier and Type | Method and 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() |
public static final int DEFAULT_METRICS_RETENTION_SECONDS
public MetricsManagementCenterConfig()
public MetricsManagementCenterConfig(MetricsManagementCenterConfig managementCenterConfig)
public boolean isEnabled()
This configuration acts as a fine-tuning option beyond
enabling/disabling the Metrics collection entirely via the
BaseMetricsConfig.isEnabled()
master switch.
true
if exposing to Hazelcast Management Center is enabled.BaseMetricsConfig.isEnabled()
@Nonnull public MetricsManagementCenterConfig setEnabled(boolean enabled)
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.
setEnabled(boolean)
public int getRetentionSeconds()
@Nonnull public MetricsManagementCenterConfig setRetentionSeconds(int retentionSeconds)
BaseMetricsConfig.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.
Copyright © 2023 Hazelcast, Inc.. All rights reserved.