Class DynamicCacheChangeRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.DynamicCacheChangeRequest
-
- All Implemented Interfaces:
Serializable
public class DynamicCacheChangeRequest extends Object implements Serializable
Cache start/stop request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamicCacheChangeRequest(UUID reqId, String cacheName, UUID initiatingNodeId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheConfigurationEnrichmentcacheConfigurationEnrichment()voidcacheConfigurationEnrichment(CacheConfigurationEnrichment cacheCfgEnrichment)StringcacheName()voidcacheName(String cacheName)CacheTypecacheType()voidcacheType(CacheType cacheType)booleanclientStartOnly()voidclientStartOnly(boolean clientStartOnly)IgniteUuiddeploymentId()voiddeploymentId(IgniteUuid deploymentId)booleandestroy()voiddestroy(boolean destroy)Sets cache data destroy flag.booleandisabledAfterStart()voiddisabledAfterStart(boolean disabledAfterStart)@org.jetbrains.annotations.Nullable byte[]encryptionKey()voidencryptionKey(@org.jetbrains.annotations.Nullable byte[] encKey)@Nullable IntegerencryptionKeyId()voidencryptionKeyId(@Nullable Integer encKeyId)Sets encryption key id.booleanfailIfExists()voidfailIfExists(boolean failIfExists)booleanfinalizePartitionCounters()Finalize partition update counters flag.UUIDinitiatingNodeId()booleanlocallyConfigured()voidlocallyConfigured(boolean locallyConfigured)voidmarkFinalizePartitionCounters()Set finalize partition update counters flag.voidmarkResetLostPartitions()Set resetLostPartitions flag.@org.jetbrains.annotations.Nullable byte[]masterKeyDigest()voidmasterKeyDigest(@org.jetbrains.annotations.Nullable byte[] masterKeyDigest)NearCacheConfigurationnearCacheConfiguration()voidnearCacheConfiguration(NearCacheConfiguration nearCacheCfg)@Nullable UUIDreceivedFrom()voidreceivedFrom(UUID nodeId)UUIDrequestId()booleanresetLostPartitions()booleanrestart()voidrestart(boolean restart)IgniteUuidrestartId()voidrestartId(IgniteUuid restartId)QuerySchemaschema()voidschema(QuerySchema schema)booleansql()voidsql(boolean sql)Sets if cache is created using create table.booleanstart()CacheConfigurationstartCacheConfiguration()voidstartCacheConfiguration(CacheConfiguration startCfg)booleanstop()voidstop(boolean stop)static DynamicCacheChangeRequeststopRequest(GridKernalContext ctx, String cacheName, boolean sql, boolean destroy)booleantemplate()voidtemplate(boolean template)StringtoString()
-
-
-
Method Detail
-
stopRequest
public static DynamicCacheChangeRequest stopRequest(GridKernalContext ctx, String cacheName, boolean sql, boolean destroy)
- Parameters:
ctx- Context.cacheName- Cache name.sql-trueif the cache must be stopped only if it was created by SQL commandCREATE TABLE.destroy- Cache data destroy flag. Setting totruewill cause removing all cache data.- Returns:
- Cache stop request.
-
requestId
public UUID requestId()
- Returns:
- Request ID.
-
template
public void template(boolean template)
- Parameters:
template-Trueif this is request for adding template configuration.
-
template
public boolean template()
- Returns:
Trueif 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:
Trueif 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:
Trueif this is a stop request.
-
destroy
public boolean destroy()
- Returns:
- Cache data destroy flag. Setting to
truewill remove all cache data.
-
destroy
public void destroy(boolean destroy)
Sets cache data destroy flag. Setting totruewill 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:
Trueif 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.
-
-