Class ChangeGlobalStateMessage

    • Constructor Detail

      • ChangeGlobalStateMessage

        public ChangeGlobalStateMessage​(UUID reqId,
                                        UUID initiatingNodeId,
                                        @Nullable
                                        @Nullable List<StoredCacheData> storedCfgs,
                                        ClusterState state,
                                        boolean forceDeactivation,
                                        BaselineTopology baselineTopology,
                                        boolean forceChangeBaselineTopology,
                                        long timestamp)
        Parameters:
        reqId - State change request ID.
        initiatingNodeId - Node initiated state change.
        storedCfgs - Configurations read from persistent store.
        state - New cluster state.
        forceDeactivation - If true, cluster deactivation will be forced.
        baselineTopology - Baseline topology.
        forceChangeBaselineTopology - Force change baseline topology flag.
        timestamp - Timestamp.
    • Method Detail

      • storedCacheConfigurations

        @Nullable
        public @Nullable List<StoredCacheData> storedCacheConfigurations()
        Returns:
        Configurations read from persistent store..
      • exchangeActions

        @Nullable
        public @Nullable ExchangeActions exchangeActions()
        Returns:
        Cache updates to be executed on exchange. If null exchange is not needed.
      • servicesDeploymentActions

        @Nullable
        public @Nullable ServiceDeploymentActions servicesDeploymentActions()
        Returns:
        Services deployment actions to be processed on services deployment process.
      • servicesDeploymentActions

        public void servicesDeploymentActions​(ServiceDeploymentActions serviceDeploymentActions)
        Parameters:
        serviceDeploymentActions - Services deployment actions to be processed on services deployment process.
      • isMutable

        public boolean isMutable()
        Specified by:
        isMutable in interface DiscoveryCustomMessage
        Returns:
        True if message can be modified during listener notification. Changes will be sent to next nodes.
      • initiatorNodeId

        public UUID initiatorNodeId()
        Returns:
        Node initiated state change.
      • state

        public ClusterState state()
        Returns:
        New cluster state.
      • forceChangeBaselineTopology

        public boolean forceChangeBaselineTopology()
        Returns:
        Force change BaselineTopology flag.
      • baselineTopology

        @Nullable
        public @Nullable BaselineTopology baselineTopology()
        Returns:
        Baseline topology.
      • forceDeactivation

        public boolean forceDeactivation()
        Returns:
        True if cluster deactivation will be forced. False otherwise.
        See Also:
        ClusterState.INACTIVE
      • timestamp

        public long timestamp()
        Returns:
        Timestamp.
      • requestId

        public UUID requestId()
        Returns:
        State change request ID.