T - The type of the concrete configuration class extending this
            base class.public abstract class BaseMetricsConfig<T extends BaseMetricsConfig> extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
collectionFrequencySeconds  | 
protected boolean | 
enabled  | 
protected MetricsJmxConfig | 
jmxConfig  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
BaseMetricsConfig()  | 
protected  | 
BaseMetricsConfig(BaseMetricsConfig metricsConfig)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getCollectionFrequencySeconds()
Returns the metrics collection frequency in seconds. 
 | 
MetricsJmxConfig | 
getJmxConfig()  | 
boolean | 
isEnabled()
Returns if metrics collection is enabled. 
 | 
T | 
setCollectionFrequencySeconds(int intervalSeconds)
Sets the metrics collection frequency in seconds. 
 | 
T | 
setEnabled(boolean enabled)
Sets whether metrics collection should be enabled for the node. 
 | 
T | 
setJmxConfig(MetricsJmxConfig jmxConfig)  | 
protected boolean enabled
protected MetricsJmxConfig jmxConfig
protected int collectionFrequencySeconds
protected BaseMetricsConfig()
protected BaseMetricsConfig(BaseMetricsConfig metricsConfig)
@Nonnull public T setEnabled(boolean enabled)
 May be overridden by ClusterProperty.METRICS_ENABLED system property for the member.
 
 May be overridden by ClientProperty.METRICS_ENABLED and
 ClientProperty.STATISTICS_ENABLED system properties for the client.
 
 When both of them configured for the client ClientProperty.STATISTICS_ENABLED is ignored.
public boolean isEnabled()
@Nonnull public T setJmxConfig(MetricsJmxConfig jmxConfig)
@Nonnull public MetricsJmxConfig getJmxConfig()
@Nonnull public T setCollectionFrequencySeconds(int intervalSeconds)
 May be overridden by ClusterProperty.METRICS_COLLECTION_FREQUENCY system property for the member.
 
 May be overridden by ClientProperty.METRICS_COLLECTION_FREQUENCY and
 ClientProperty.STATISTICS_PERIOD_SECONDS system properties for the client
 
 When both of them is configured for the client, ClientProperty.STATISTICS_PERIOD_SECONDS is ignored.
public int getCollectionFrequencySeconds()
Copyright © 2023 Hazelcast, Inc.. All rights reserved.