public class DynamicCacheChangeRequest extends Object implements Serializable
Constructor and Description |
---|
DynamicCacheChangeRequest(UUID reqId,
String cacheName,
UUID initiatingNodeId) |
public static DynamicCacheChangeRequest stopRequest(GridKernalContext ctx, String cacheName, boolean sql, boolean destroy)
ctx
- Context.cacheName
- Cache name.sql
- true
if the cache must be stopped only if it was created by SQL command CREATE TABLE
.destroy
- Destroy flag.public UUID requestId()
public void template(boolean template)
template
- True
if this is request for adding template configuration.public boolean template()
True
if this is template configuration.public IgniteUuid deploymentId()
public void deploymentId(IgniteUuid deploymentId)
deploymentId
- Deployment ID.public boolean start()
True
if this is a start request.public void markResetLostPartitions()
public boolean resetLostPartitions()
public boolean stop()
True
if this is a stop request.public boolean destroy()
public void destroy(boolean destroy)
destroy
- Destroy.public void stop(boolean stop)
stop
- New stop flag.public boolean restart()
True
if this is a restart request.public void restart(boolean restart)
restart
- New restart flag.public String cacheName()
public void cacheName(String cacheName)
cacheName
- Cache name.public UUID initiatingNodeId()
public NearCacheConfiguration nearCacheConfiguration()
public void nearCacheConfiguration(NearCacheConfiguration nearCacheCfg)
nearCacheCfg
- Near cache configuration.public CacheConfiguration startCacheConfiguration()
public void startCacheConfiguration(CacheConfiguration startCfg)
startCfg
- Cache configuration.public void cacheType(CacheType cacheType)
cacheType
- Cache type.public CacheType cacheType()
public boolean clientStartOnly()
public void clientStartOnly(boolean clientStartOnly)
clientStartOnly
- Client start only.public boolean failIfExists()
public void failIfExists(boolean failIfExists)
failIfExists
- Fail if exists flag.public boolean sql()
public void sql(boolean sql)
sql
- New SQL flag.public void receivedFrom(UUID nodeId)
nodeId
- ID of node provided cache configuration in discovery data.@Nullable public UUID receivedFrom()
public QuerySchema schema()
public void schema(QuerySchema schema)
schema
- Dynamic schema.public boolean locallyConfigured()
public void locallyConfigured(boolean locallyConfigured)
locallyConfigured
- Locally configured flag.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017