Class CacheConfigurationSplitterImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheConfigurationSplitterImpl
-
- All Implemented Interfaces:
CacheConfigurationSplitter
public class CacheConfigurationSplitterImpl extends Object implements CacheConfigurationSplitter
Splits cache configuration into two parts that can be serialized, deserialized separately. This eliminates the need to deserialize part of the configuration and therefore, it does not require user classes on non-affinity nodes.
-
-
Constructor Summary
Constructors Constructor Description CacheConfigurationSplitterImpl(GridKernalContext ctx, Marshaller marshaller)Creates a new instance of splitter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T2<CacheConfiguration,CacheConfigurationEnrichment>split(CacheConfiguration ccfg)Splits the given cache configuration into two partsCacheConfigurationandCacheConfigurationEnrichmentthat are serialized separately.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.CacheConfigurationSplitter
split, split
-
-
-
-
Constructor Detail
-
CacheConfigurationSplitterImpl
public CacheConfigurationSplitterImpl(GridKernalContext ctx, Marshaller marshaller)
Creates a new instance of splitter.- Parameters:
ctx- Kernal context.marshaller- Marshaller to be used for seserialization.
-
-
Method Detail
-
split
public T2<CacheConfiguration,CacheConfigurationEnrichment> split(CacheConfiguration ccfg)
Splits the given cache configuration into two partsCacheConfigurationandCacheConfigurationEnrichmentthat are serialized separately. The fields marked withSerializeSeparatelyare placed intoCacheConfigurationEnrichment, the corresponding values intoCacheConfigurationare changed with the default ones.- Specified by:
splitin interfaceCacheConfigurationSplitter- Parameters:
ccfg- Cache configuration to split.- Returns:
- Split cache configuration.
- See Also:
SerializeSeparately
-
-