Class DynamicCacheChangeRequest

    • Constructor Detail

      • DynamicCacheChangeRequest

        public DynamicCacheChangeRequest​(UUID reqId,
                                         String cacheName,
                                         UUID initiatingNodeId)
        Parameters:
        reqId - Unique request ID.
        cacheName - Cache stop name.
        initiatingNodeId - Initiating node ID.
    • Method Detail

      • stopRequest

        public static DynamicCacheChangeRequest stopRequest​(GridKernalContext ctx,
                                                            String cacheName,
                                                            boolean sql,
                                                            boolean destroy)
        Parameters:
        ctx - Context.
        cacheName - Cache name.
        sql - true if the cache must be stopped only if it was created by SQL command CREATE TABLE.
        destroy - Cache data destroy flag. Setting to true will cause removing all cache data.
        Returns:
        Cache stop request.
      • requestId

        public UUID requestId()
        Returns:
        Request ID.
      • template

        public void template​(boolean template)
        Parameters:
        template - True if this is request for adding template configuration.
      • template

        public boolean template()
        Returns:
        True if this is template configuration.
      • deploymentId

        public IgniteUuid deploymentId()
        Returns:
        Deployment ID.
      • deploymentId

        public void deploymentId​(IgniteUuid deploymentId)
        Parameters:
        deploymentId - Deployment ID.
      • start

        public boolean start()
        Returns:
        True if this is a start request.
      • markResetLostPartitions

        public void markResetLostPartitions()
        Set resetLostPartitions flag.
      • resetLostPartitions

        public boolean resetLostPartitions()
        Returns:
        Reset lost partitions flag.
      • stop

        public boolean stop()
        Returns:
        True if this is a stop request.
      • destroy

        public boolean destroy()
        Returns:
        Cache data destroy flag. Setting to true will remove all cache data.
      • destroy

        public void destroy​(boolean destroy)
        Sets cache data destroy flag. Setting to true will cause removing all cache data.
        Parameters:
        destroy - Destroy flag.
      • stop

        public void stop​(boolean stop)
        Parameters:
        stop - New stop flag.
      • restart

        public boolean restart()
        Returns:
        True if this is a restart request.
      • restart

        public void restart​(boolean restart)
        Parameters:
        restart - New restart flag.
      • markFinalizePartitionCounters

        public void markFinalizePartitionCounters()
        Set finalize partition update counters flag.
      • finalizePartitionCounters

        public boolean finalizePartitionCounters()
        Finalize partition update counters flag.
      • restartId

        public IgniteUuid restartId()
        Returns:
        Id of restart to allow only initiator start the restarting cache.
      • restartId

        public void restartId​(IgniteUuid restartId)
        Parameters:
        restartId - Id of cache restart requester.
      • cacheName

        public String cacheName()
        Returns:
        Cache name.
      • cacheName

        public void cacheName​(String cacheName)
        Parameters:
        cacheName - Cache name.
      • initiatingNodeId

        public UUID initiatingNodeId()
        Returns:
        Near node ID.
      • nearCacheConfiguration

        public NearCacheConfiguration nearCacheConfiguration()
        Returns:
        Near cache configuration.
      • nearCacheConfiguration

        public void nearCacheConfiguration​(NearCacheConfiguration nearCacheCfg)
        Parameters:
        nearCacheCfg - Near cache configuration.
      • startCacheConfiguration

        public CacheConfiguration startCacheConfiguration()
        Returns:
        Cache configuration.
      • startCacheConfiguration

        public void startCacheConfiguration​(CacheConfiguration startCfg)
        Parameters:
        startCfg - Cache configuration.
      • cacheType

        public void cacheType​(CacheType cacheType)
        Parameters:
        cacheType - Cache type.
      • cacheType

        public CacheType cacheType()
        Returns:
        Cache type.
      • clientStartOnly

        public boolean clientStartOnly()
        Returns:
        Client start only.
      • clientStartOnly

        public void clientStartOnly​(boolean clientStartOnly)
        Parameters:
        clientStartOnly - Client start only.
      • failIfExists

        public boolean failIfExists()
        Returns:
        Fail if exists flag.
      • failIfExists

        public void failIfExists​(boolean failIfExists)
        Parameters:
        failIfExists - Fail if exists flag.
      • sql

        public boolean sql()
        Returns:
        SQL flag.
      • sql

        public void sql​(boolean sql)
        Sets if cache is created using create table.
        Parameters:
        sql - New SQL flag.
      • receivedFrom

        public void receivedFrom​(UUID nodeId)
        Parameters:
        nodeId - ID of node provided cache configuration in discovery data.
      • receivedFrom

        @Nullable
        public @Nullable UUID receivedFrom()
        Returns:
        ID of node provided cache configuration in discovery data.
      • schema

        public QuerySchema schema()
        Returns:
        Dynamic schema.
      • schema

        public void schema​(QuerySchema schema)
        Parameters:
        schema - Dynamic schema.
      • locallyConfigured

        public boolean locallyConfigured()
        Returns:
        Locally configured flag.
      • locallyConfigured

        public void locallyConfigured​(boolean locallyConfigured)
        Parameters:
        locallyConfigured - Locally configured flag.
      • disabledAfterStart

        public boolean disabledAfterStart()
        Returns:
        state of cache after start
      • disabledAfterStart

        public void disabledAfterStart​(boolean disabledAfterStart)
        Parameters:
        disabledAfterStart - state of cache after start
      • encryptionKey

        public void encryptionKey​(@Nullable
                                  @org.jetbrains.annotations.Nullable byte[] encKey)
        Parameters:
        encKey - Encryption key.
      • encryptionKey

        @Nullable
        public @org.jetbrains.annotations.Nullable byte[] encryptionKey()
        Returns:
        Encryption key.
      • encryptionKeyId

        public void encryptionKeyId​(@Nullable
                                    @Nullable Integer encKeyId)
        Sets encryption key id.
        Parameters:
        encKeyId - Encryption key id.
      • encryptionKeyId

        @Nullable
        public @Nullable Integer encryptionKeyId()
        Returns:
        Encryption key id.
      • masterKeyDigest

        public void masterKeyDigest​(@Nullable
                                    @org.jetbrains.annotations.Nullable byte[] masterKeyDigest)
        Parameters:
        masterKeyDigest - Master key digest.
      • masterKeyDigest

        @Nullable
        public @org.jetbrains.annotations.Nullable byte[] masterKeyDigest()
        Returns:
        Master key digest that encrypted the group encryption key.
      • cacheConfigurationEnrichment

        public CacheConfigurationEnrichment cacheConfigurationEnrichment()
        Returns:
        Cache configuration enrichment.
      • cacheConfigurationEnrichment

        public void cacheConfigurationEnrichment​(CacheConfigurationEnrichment cacheCfgEnrichment)
        Parameters:
        cacheCfgEnrichment - Cache config enrichment.