[infinispan-dev] Node being an owner of key

Manik Surtani manik at jboss.org
Fri Mar 11 07:45:44 EST 2011


Yeah, combining getLocality with RpcManager's getAddress won't help you?

On 11 Mar 2011, at 07:22, Bela Ban wrote:

> 
> 
> On 3/10/11 7:54 PM, Vladimir Blagojevic wrote:
>> Hey,
>> 
>> Can we make method getAddress public on DistributionManager?
> 
> 
> Can't you grab RpcManager and call getAddress() on it instead of 
> DistributionManager ?
> 
> 
>> Either that or add a new method to DistributionManager which returns true if node is
>> an owner of a key, that is, if key is local and locate(key) returns a
>> list of addresses where first address equals to this node.
> 
> 
> There's isLocal() but I see it's been deprecated...
> 
> 
> -- 
> Bela Ban
> Lead JGroups / Clustering Team
> JBoss
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org






More information about the infinispan-dev mailing list