Class CacheConfigurationEnricher
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheConfigurationEnricher
-
public class CacheConfigurationEnricher extends Object
The responsibility of this class is to enrich cache configuration with stored enrichment, in other words it allows to deserialize fields ofCacheConfigurationthat are marked withSerializeSeparately.
-
-
Constructor Summary
Constructors Constructor Description CacheConfigurationEnricher(GridKernalContext ctx, Marshaller marshaller, ClassLoader clsLdr)Creates a new instance of enricher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheConfiguration<?,?>enrich(CacheConfiguration<?,?> ccfg, @Nullable CacheConfigurationEnrichment enrichment, boolean affinityNode)Enriches cache configuration fields with deserialized values from givenenrichment.CacheGroupDescriptorenrich(CacheGroupDescriptor desc, boolean affinityNode)Enriches descriptor cache configuration with stored enrichment.DynamicCacheDescriptorenrich(DynamicCacheDescriptor desc, boolean affinityNode)Enriches descriptor cache configuration with stored enrichment.CacheConfiguration<?,?>enrichFully(CacheConfiguration<?,?> ccfg, CacheConfigurationEnrichment enrichment)
-
-
-
Constructor Detail
-
CacheConfigurationEnricher
public CacheConfigurationEnricher(GridKernalContext ctx, Marshaller marshaller, ClassLoader clsLdr)
Creates a new instance of enricher.- Parameters:
ctx- Kernal context.marshaller- Marshaller to be used for deserializing parts onCacheConfiguration.clsLdr- Class loader to be used for deserializing parts onCacheConfiguration.
-
-
Method Detail
-
enrich
public DynamicCacheDescriptor enrich(DynamicCacheDescriptor desc, boolean affinityNode)
Enriches descriptor cache configuration with stored enrichment.- Parameters:
desc- Cache desriptor.affinityNode-trueif enrichment is happened on affinity node.
-
enrich
public CacheGroupDescriptor enrich(CacheGroupDescriptor desc, boolean affinityNode)
Enriches descriptor cache configuration with stored enrichment.- Parameters:
desc- Cache group descriptor to be enriched.affinityNode-trueif enrichment is happened on affinity node.
-
enrich
public CacheConfiguration<?,?> enrich(CacheConfiguration<?,?> ccfg, @Nullable @Nullable CacheConfigurationEnrichment enrichment, boolean affinityNode)
Enriches cache configuration fields with deserialized values from givenenrichment.- Parameters:
ccfg- Cache configuration to enrich.enrichment- Cache configuration enrichment.affinityNode-trueif enrichment is happened on affinity node.- Returns:
- Enriched cache configuration.
-
enrichFully
public CacheConfiguration<?,?> enrichFully(CacheConfiguration<?,?> ccfg, CacheConfigurationEnrichment enrichment)
- Parameters:
ccfg- Cache configuration to enrich.enrichment- Cache configuration enrichment.- Returns:
- Enriched cache configuration.
-
-