public class DynamicCacheDescriptor extends Object
| Constructor and Description |
|---|
DynamicCacheDescriptor(GridKernalContext ctx,
CacheConfiguration cacheCfg,
CacheType cacheType,
CacheGroupDescriptor grpDesc,
boolean template,
UUID rcvdFrom,
boolean staticCfg,
boolean sql,
IgniteUuid deploymentId,
QuerySchema schema) |
public DynamicCacheDescriptor(GridKernalContext ctx, CacheConfiguration cacheCfg, CacheType cacheType, CacheGroupDescriptor grpDesc, boolean template, UUID rcvdFrom, boolean staticCfg, boolean sql, IgniteUuid deploymentId, QuerySchema schema)
ctx - Context.cacheCfg - Cache configuration.cacheType - Cache type.grpDesc - Group descriptor.template - True if this is template configuration.rcvdFrom - ID of node provided cache configurationstaticCfg - True if cache statically configured.sql - SQL flag - whether the cache is created by an SQL command such as CREATE TABLE.deploymentId - Deployment ID.schema - Query schema.public int groupId()
public CacheGroupDescriptor groupDescriptor()
public Integer cacheId()
public boolean template()
True if this is template configuration.public CacheType cacheType()
public IgniteUuid deploymentId()
public boolean staticallyConfigured()
True if statically configured.public boolean sql()
public String cacheName()
public CacheConfiguration cacheConfiguration()
public CacheObjectContext cacheObjectContext(IgniteCacheObjectProcessor proc) throws IgniteCheckedException
proc - Object processor.IgniteCheckedException - If failed.public boolean updatesAllowed()
public void updatesAllowed(boolean updatesAllowed)
updatesAllowed - Updates allowed flag.@Nullable public UUID receivedFrom()
@Nullable public AffinityTopologyVersion startTopologyVersion()
null if cache configured statically.public void startTopologyVersion(AffinityTopologyVersion startTopVer)
startTopVer - Start topology version.public QuerySchema schema()
public void schema(QuerySchema schema)
schema - Schema.public void schemaChangeFinish(SchemaFinishDiscoveryMessage msg)
msg - Message.public QuerySchemaPatch makeSchemaPatch(Collection<QueryEntity> target)
target - Query entity list which current schema should be expanded to.QuerySchemaPatchpublic boolean applySchemaPatch(QuerySchemaPatch patch)
patch - patch to apply.true if applying was success and false otherwise.public StoredCacheData toStoredData()
StoredCacheData with all data to correctly restore cache params when its configuration is read
from page store. Essentially, this method takes from DynamicCacheDescriptor all that's needed to start
cache correctly, leaving out everything else.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019