Class RollingUpgradeMetricSource
java.lang.Object
org.apache.ignite.internal.metrics.AbstractMetricSource<RollingUpgradeMetricSource.Holder>
org.gridgain.internal.upgrade.metrics.RollingUpgradeMetricSource
- All Implemented Interfaces:
org.apache.ignite.internal.metrics.MetricSource
public class RollingUpgradeMetricSource
extends org.apache.ignite.internal.metrics.AbstractMetricSource<RollingUpgradeMetricSource.Holder>
Metric source for rolling upgrade process.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classHolder for rolling upgrade metrics. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RollingUpgradeMetricSource.Holder@Nullable org.apache.ignite.internal.metrics.StringGaugevoidinitialVersion(String version) Updates initial cluster version.@Nullable org.apache.ignite.internal.metrics.StringGaugevoidnotUpgradedNodes(Set<String> nodes) Updates list of nodes not yet upgraded.@Nullable org.apache.ignite.internal.metrics.StringGaugestate()voidstate(RollingUpgradeState state) Updates rolling upgrade state.@Nullable org.apache.ignite.internal.metrics.StringGaugevoidtargetVersion(@Nullable String version) Updates target cluster version.@Nullable org.apache.ignite.internal.metrics.StringGaugevoidupgradedNodes(Set<String> nodes) Updates list of upgraded nodes.Methods inherited from class org.apache.ignite.internal.metrics.AbstractMetricSource
description, disable, enable, enabled, group, holder, name
-
Constructor Details
-
RollingUpgradeMetricSource
public RollingUpgradeMetricSource()Constructor.
-
-
Method Details
-
initialVersion
Updates initial cluster version.- Parameters:
version- Initial cluster version.
-
initialVersion
@TestOnly @Nullable public @Nullable org.apache.ignite.internal.metrics.StringGauge initialVersion() -
targetVersion
Updates target cluster version.- Parameters:
version- Target cluster version, may benullor empty if no upgrade is in progress.
-
targetVersion
@TestOnly @Nullable public @Nullable org.apache.ignite.internal.metrics.StringGauge targetVersion() -
state
Updates rolling upgrade state.- Parameters:
state- State of rolling upgrade. SeeRollingUpgradeState.
-
state
@TestOnly @Nullable public @Nullable org.apache.ignite.internal.metrics.StringGauge state() -
upgradedNodes
Updates list of upgraded nodes.- Parameters:
nodes- Set of node IDs that have been upgraded.
-
upgradedNodes
@TestOnly @Nullable public @Nullable org.apache.ignite.internal.metrics.StringGauge upgradedNodes() -
notUpgradedNodes
Updates list of nodes not yet upgraded.- Parameters:
nodes- Set of node IDs that have not been upgraded yet.
-
notUpgradedNodes
@TestOnly @Nullable public @Nullable org.apache.ignite.internal.metrics.StringGauge notUpgradedNodes() -
createHolder
- Specified by:
createHolderin classorg.apache.ignite.internal.metrics.AbstractMetricSource<RollingUpgradeMetricSource.Holder>
-