Je souhaite créer un nœud Ignite avec une configuration par programme. Un objet javax.cache.CacheManager est requis pour l'application.Comment instancier Ignite CacheManager avec une configuration par programme/sans XML
Je sais que je peux commencer un Ignite-nœud avec le code suivant:
//with xml-config
Ignition.start("path-to-ignite-config-xml");
//with programmatic config
Ignition.start(cfg)
//with xml-config with the JCache-API
Caching.getCachingProvider().getCacheManager(uriToXML,Classloader);
Les deux premiers méthode appels ont un Ignite-objet comme valeur de retour. Le dernier a obtenu un objet CacheManager comme valeur de retour. Mais je besoin de quelque chose comme ceci:
Caching.getCachingProvider().getCacheManager(IgniteConfiguration cfg);
// or this:
Ignition.start(IgniteConfiguration cfg).getCacheManager();
Il y a une méthode org.apache.ignite.cache.CachingProvider.findManager (Ignite) qui a obtenu le type de retour javax.cache.CacheManager (ce qui est ce que je veux mais la valeur de retour est toujours nulle.
Existe-t-il un moyen d'obtenir un objet javax.cache.CacheManager sans xml-config?