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

    Constructors
    Constructor
    Description
    FeatureCheckerImpl(org.apache.ignite.internal.cluster.management.topology.api.LogicalTopologyService topologyService, org.gridgain.internal.upgrade.RollingUpgradeManager upgradeManager)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isSupported(org.gridgain.internal.upgrade.GridGainFeature feature)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      isSupported in interface org.gridgain.internal.upgrade.FeatureChecker