Hi all ! How could we list all caches, residing on a certain Ignite
instance? -- *Best Regards,* *Kuznetsov Aleksey* |
Hi Aleksey
https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.html#cacheNames() On Mon, Mar 6, 2017 at 3:52 PM, ALEKSEY KUZNETSOV <[hidden email]> wrote: > Hi all ! How could we list all caches, residing on a certain Ignite > instance? > -- > > *Best Regards,* > > *Kuznetsov Aleksey* > -- Sergey Kozlov GridGain Systems www.gridgain.com |
Consider we've got N1 and N2 nodes.Configure cache context C1 with node
filter, which filters out N1. Now, if you call cacheNames on either of ignite instances you get C1. But N1 node must not contain C1 cache. пн, 6 мар. 2017 г. в 16:32, Sergey Kozlov <[hidden email]>: > Hi Aleksey > > > https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.html#cacheNames() > > On Mon, Mar 6, 2017 at 3:52 PM, ALEKSEY KUZNETSOV < > [hidden email]> > wrote: > > > Hi all ! How could we list all caches, residing on a certain Ignite > > instance? > > -- > > > > *Best Regards,* > > > > *Kuznetsov Aleksey* > > > > > > -- > Sergey Kozlov > GridGain Systems > www.gridgain.com > *Best Regards,* *Kuznetsov Aleksey* |
Aleksey,
node N1 must not contain C1 cache data (must not be affinity node for cache C1), but N1 node must to know about C1 cache (must jave C1 cache descriptor) in order to provide access to C1 cache from this node. On Mon, Mar 6, 2017 at 4:36 PM, ALEKSEY KUZNETSOV <[hidden email]> wrote: > Consider we've got N1 and N2 nodes.Configure cache context C1 with node > filter, which filters out N1. Now, if you call cacheNames on either of > ignite instances you get C1. But N1 node must not contain C1 cache. > > пн, 6 мар. 2017 г. в 16:32, Sergey Kozlov <[hidden email]>: > >> Hi Aleksey >> >> >> https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.html#cacheNames() >> >> On Mon, Mar 6, 2017 at 3:52 PM, ALEKSEY KUZNETSOV < >> [hidden email]> >> wrote: >> >> > Hi all ! How could we list all caches, residing on a certain Ignite >> > instance? >> > -- >> > >> > *Best Regards,* >> > >> > *Kuznetsov Aleksey* >> > >> >> >> >> -- >> Sergey Kozlov >> GridGain Systems >> www.gridgain.com >> > -- > > *Best Regards,* > > *Kuznetsov Aleksey* |
Again. My question was "How could we list all caches, residing on a
certain Ignite instance?". In other words, i want to make sure N1 doesn't contain C1 cache. Is there a function F() as following : F (N1) = null , F(N2) = C1. пн, 6 мар. 2017 г. в 16:54, Andrey Gura <[hidden email]>: > Aleksey, > > node N1 must not contain C1 cache data (must not be affinity node for > cache C1), but N1 node must to know about C1 cache (must jave C1 cache > descriptor) in order to provide access to C1 cache from this node. > > > > On Mon, Mar 6, 2017 at 4:36 PM, ALEKSEY KUZNETSOV > <[hidden email]> wrote: > > Consider we've got N1 and N2 nodes.Configure cache context C1 with node > > filter, which filters out N1. Now, if you call cacheNames on either of > > ignite instances you get C1. But N1 node must not contain C1 cache. > > > > пн, 6 мар. 2017 г. в 16:32, Sergey Kozlov <[hidden email]>: > > > >> Hi Aleksey > >> > >> > >> > https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.html#cacheNames() > >> > >> On Mon, Mar 6, 2017 at 3:52 PM, ALEKSEY KUZNETSOV < > >> [hidden email]> > >> wrote: > >> > >> > Hi all ! How could we list all caches, residing on a certain Ignite > >> > instance? > >> > -- > >> > > >> > *Best Regards,* > >> > > >> > *Kuznetsov Aleksey* > >> > > >> > >> > >> > >> -- > >> Sergey Kozlov > >> GridGain Systems > >> www.gridgain.com > >> > > -- > > > > *Best Regards,* > > > > *Kuznetsov Aleksey* > *Best Regards,* *Kuznetsov Aleksey* |
You always can use opposite direct during finding solution:
ignite.cluster().forDataNodes(C1.getName()).nodes().contains(N1) On Mon, Mar 6, 2017 at 5:01 PM, ALEKSEY KUZNETSOV <[hidden email]> wrote: > Again. My question was "How could we list all caches, residing on a > certain Ignite instance?". In other words, i want to make sure N1 doesn't > contain C1 cache. Is there a function F() as following : F (N1) = null , > F(N2) = C1. > > пн, 6 мар. 2017 г. в 16:54, Andrey Gura <[hidden email]>: > >> Aleksey, >> >> node N1 must not contain C1 cache data (must not be affinity node for >> cache C1), but N1 node must to know about C1 cache (must jave C1 cache >> descriptor) in order to provide access to C1 cache from this node. >> >> >> >> On Mon, Mar 6, 2017 at 4:36 PM, ALEKSEY KUZNETSOV >> <[hidden email]> wrote: >> > Consider we've got N1 and N2 nodes.Configure cache context C1 with node >> > filter, which filters out N1. Now, if you call cacheNames on either of >> > ignite instances you get C1. But N1 node must not contain C1 cache. >> > >> > пн, 6 мар. 2017 г. в 16:32, Sergey Kozlov <[hidden email]>: >> > >> >> Hi Aleksey >> >> >> >> >> >> >> https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.html#cacheNames() >> >> >> >> On Mon, Mar 6, 2017 at 3:52 PM, ALEKSEY KUZNETSOV < >> >> [hidden email]> >> >> wrote: >> >> >> >> > Hi all ! How could we list all caches, residing on a certain Ignite >> >> > instance? >> >> > -- >> >> > >> >> > *Best Regards,* >> >> > >> >> > *Kuznetsov Aleksey* >> >> > >> >> >> >> >> >> >> >> -- >> >> Sergey Kozlov >> >> GridGain Systems >> >> www.gridgain.com >> >> >> > -- >> > >> > *Best Regards,* >> > >> > *Kuznetsov Aleksey* >> > -- > > *Best Regards,* > > *Kuznetsov Aleksey* |
Big thanx!
пн, 6 мар. 2017 г. в 17:37, Andrey Gura <[hidden email]>: > You always can use opposite direct during finding solution: > > ignite.cluster().forDataNodes(C1.getName()).nodes().contains(N1) > > On Mon, Mar 6, 2017 at 5:01 PM, ALEKSEY KUZNETSOV > <[hidden email]> wrote: > > Again. My question was "How could we list all caches, residing on a > > certain Ignite instance?". In other words, i want to make sure N1 doesn't > > contain C1 cache. Is there a function F() as following : F (N1) = null , > > F(N2) = C1. > > > > пн, 6 мар. 2017 г. в 16:54, Andrey Gura <[hidden email]>: > > > >> Aleksey, > >> > >> node N1 must not contain C1 cache data (must not be affinity node for > >> cache C1), but N1 node must to know about C1 cache (must jave C1 cache > >> descriptor) in order to provide access to C1 cache from this node. > >> > >> > >> > >> On Mon, Mar 6, 2017 at 4:36 PM, ALEKSEY KUZNETSOV > >> <[hidden email]> wrote: > >> > Consider we've got N1 and N2 nodes.Configure cache context C1 with > node > >> > filter, which filters out N1. Now, if you call cacheNames on either of > >> > ignite instances you get C1. But N1 node must not contain C1 cache. > >> > > >> > пн, 6 мар. 2017 г. в 16:32, Sergey Kozlov <[hidden email]>: > >> > > >> >> Hi Aleksey > >> >> > >> >> > >> >> > >> > https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.html#cacheNames() > >> >> > >> >> On Mon, Mar 6, 2017 at 3:52 PM, ALEKSEY KUZNETSOV < > >> >> [hidden email]> > >> >> wrote: > >> >> > >> >> > Hi all ! How could we list all caches, residing on a certain Ignite > >> >> > instance? > >> >> > -- > >> >> > > >> >> > *Best Regards,* > >> >> > > >> >> > *Kuznetsov Aleksey* > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Sergey Kozlov > >> >> GridGain Systems > >> >> www.gridgain.com > >> >> > >> > -- > >> > > >> > *Best Regards,* > >> > > >> > *Kuznetsov Aleksey* > >> > > -- > > > > *Best Regards,* > > > > *Kuznetsov Aleksey* > *Best Regards,* *Kuznetsov Aleksey* |
Free forum by Nabble | Edit this page |