Package org.gridgain.internal.upgrade
Class FeatureCheckerImpl
java.lang.Object
org.gridgain.internal.upgrade.FeatureCheckerImpl
- All Implemented Interfaces:
org.gridgain.internal.upgrade.FeatureChecker
public class FeatureCheckerImpl
extends Object
implements org.gridgain.internal.upgrade.FeatureChecker
Default implementation of
FeatureChecker that inspects every node
in the logical topology. A feature is supported only when all nodes
advertise it in their "gridgain.features" system attribute
and the rolling upgrade (if any) has been committed.
During a rolling upgrade the feature bits may already be present on every node, but the feature is not considered available until the upgrade is officially committed. This prevents protocol switches while the cluster is still in a transitional state.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureCheckerImpl(org.apache.ignite.internal.cluster.management.topology.api.LogicalTopologyService topologyService, org.gridgain.internal.upgrade.RollingUpgradeManager upgradeManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSupported(org.gridgain.internal.upgrade.GridGainFeature feature)
-
Constructor Details
-
FeatureCheckerImpl
public FeatureCheckerImpl(org.apache.ignite.internal.cluster.management.topology.api.LogicalTopologyService topologyService, org.gridgain.internal.upgrade.RollingUpgradeManager upgradeManager) Creates a new instance.- Parameters:
topologyService- Logical topology service.upgradeManager- Rolling upgrade manager — used to receive the commit notification.
-
-
Method Details
-
isSupported
public boolean isSupported(org.gridgain.internal.upgrade.GridGainFeature feature) - Specified by:
isSupportedin interfaceorg.gridgain.internal.upgrade.FeatureChecker
-