Hello!

I guess myIgnite.configuration() will only return what node has started
with, including cache configurations.

It's not ugly. You should definitely be using
myIgnite.cache("FOO").getConfiguration(CacheConfiguratin.class);

Regards,
-- 
Ilya Kasnacheev


пт, 1 февр. 2019 г. в 00:59, Scott Cote <[email protected]>:

> I am trying to inspect the caches that are contained within a given grid.
>
>
>
> Using a specific instance of Ignite, myIgnite, I created an instance of
> IgniteCache - myIgniteCache – call the cache “FOO”.
>
> Later, I interrogated that same Ignite instance, myIgnite, by invoking
> “myIgnite.configuration().getCacheConfiguration()” in an attempt to get an
> array of all of the cache configurations for all of the caches within that
> grid.   “FOO” was not there, just a system cache.  Why? – was there
> something else that I needed to do in order to make that cache visible
> there?  What should I do instead if I’m not supposed to do this?
>
>
>
>
>
> Alternatively, I was able to do the big java ugly ….    CacheConfiguration
> myFoo = (CacheConfiguration)
> myIgnite.getConfiguration(CacheConfiguratin.class) .
>
>
>
> That seems all kinds of wrong – what is the right/best way to get the
> CacheConfiguration of my FOO cache?
>
>
>
> TIA,
>
>
>
> SCott
>

Reply via email to