-
1. Re: The Grouping API
defunkt May 15, 2013 4:39 PM (in response to cotton.ben)I think what that document means is that you want a group of entries to be located onto the same node, without actually knowing which one they are being sent to. In any way, I think you can use AdvancedCache.getDistributionManager().locate(key).
-
2. Re: The Grouping API
cotton.ben May 15, 2013 5:19 PM (in response to defunkt)Thank you for this response, Gilad.
Your comment makes sense in the context of what I am experiencing ... I thought I could use Grouper#computeGroup(key, origGroup) to pin a Cache.Entry<K,V> onto a particular node that I would identify (but that may not be the case!). Let me test. Appreciate your pointing out AdvancedCache.getDistributionManager().locate(key) will put that to work right now.
thanks again.
Ben
-
3. Re: The Grouping API
nadirx May 16, 2013 3:58 AM (in response to cotton.ben)Ben, in order to "pin" keys exactly to a specific node, use the Key Affinity Service https://docs.jboss.org/author/display/ISPN/Key+affinity+service
-
-
5. Re: The Grouping API
jaga244 Feb 21, 2018 5:20 AM (in response to nadirx)hi sir,
I wanted pin key to pariticular node.So, i can use key Affinity Service .But ,if any node down or starting new node,that make affinity lost.how could i solve this??