Interface IGridClusterStateProcessor

    • Method Detail

      • publicApiActiveState

        @Deprecated
        boolean publicApiActiveState​(boolean waitForTransition)
        Deprecated.
        Returns:
        Cluster state to be used on public API.
      • publicApiState

        ClusterState publicApiState​(boolean waitForTransition)
        Parameters:
        waitForTransition - Wait end of transition or not.
        Returns:
        Current cluster state to be used on public API.
      • publicApiStateAsync

        IgniteFuture<ClusterState> publicApiStateAsync​(boolean waitForTransition)
        Parameters:
        waitForTransition - Wait end of transition or not.
        Returns:
        Current cluster state to be used on public API.
      • lastStateChangeTime

        long lastStateChangeTime()
        Returns:
        Time of last cluster state change to be used on public API.
      • onLocalJoin

        @Nullable
        @Nullable IgniteInternalFuture<Boolean> onLocalJoin​(DiscoCache discoCache)
        Parameters:
        discoCache - Discovery data cache.
        Returns:
        If transition is in progress returns future which is completed when transition finishes.
      • clusterState

        DiscoveryDataClusterState clusterState()
        Returns:
        Current cluster state, should be called only from discovery thread.
      • cacheProcessorStarted

        void cacheProcessorStarted()
      • changeGlobalState

        IgniteInternalFuture<?> changeGlobalState​(ClusterState state,
                                                  boolean forceDeactivation,
                                                  Collection<? extends BaselineNode> baselineNodes,
                                                  boolean forceChangeBaselineTopology)
        Parameters:
        state - New cluster state.
        forceDeactivation - If true, cluster deactivation will be forced.
        baselineNodes - New baseline nodes.
        forceChangeBaselineTopology - Force change baseline topology.
        Returns:
        State change future.
        See Also:
        ClusterState.INACTIVE
      • onStateChangeExchangeDone

        void onStateChangeExchangeDone​(StateChangeRequest req)
        Parameters:
        req - State change request.
      • onExchangeFinishedOnCoordinator

        void onExchangeFinishedOnCoordinator​(IgniteInternalFuture exchangeFuture,
                                             boolean hasMovingPartitions)
        Parameters:
        exchangeFuture - Exchange future.
        hasMovingPartitions - True if there are moving partitions.
      • evictionsAllowed

        boolean evictionsAllowed()
        Returns:
        True if partition evictions are allowed in current state.