I found what I've read in this area confusing, and here is my current understanding.
When creating an IgniteConfiguration in Java or XML, I can specify the property cacheConfiguration, which is an array of CacheConfigurations. This causes Ignite to preserve these configurations, but this will not cause Ignite to create a cache. If I call Ignite.getOrCreateCache(string), if there is an existing cache, I will get that, otherwise a new cache will be created using that configuration. It seems like creating a cache with a configuration will add to this list, because Ignite.configuration.getCacheConfiguration() returns all caches. I can later call Ignite.addCacheConfiguration(). This will add a template to that list. Questions: 1) what happens if there are entries with duplicate names on IgniteConfiguration.setCacheConfiguration() when this is used to create a grid? 2) There was mention in one e-mail talking about a convention where templates have "*" in their name? 3) What happens if addCacheConfiguration() tries to add a duplicate name? 4) Is a template simply a cache that not fully instantiated? 5) What about template persistence? Are they persisted if they specify a region that is persistent? 6) My use case is that I want to create caches based some default for the cluster, so in Java I would like to construct the new configuration from the a template of a known name. So far, I can only see that I can call Ignite.configuration.getCacheConfiguration() and then search the array for a matching name. Is there a better way? Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website.
