Looking at the code snippet, should be the total member count in the cluster and the member count in the relevant partition.
On Wed, Nov 27, 2013 at 2:02 PM, Udara Liyanage <[email protected]> wrote: > What is the difference between below two methods. What is the correct way > of doing $subject > > private int memberCount; > //This map will keep number of currently spawned instance count against > partitionId > private Map<String, Integer> partitionCountMap; > > public int getMemberCount() { > return memberCount; > } > > > public int getMemberCount(String partitionId){ > if(partitionCountMap.containsKey(partitionId)) { > return partitionCountMap.get(partitionId); > } > return 0; > } > > > -- > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > -- Thanks and Regards, Isuru H. Software Engineer, WSO2 Inc. +94 716 358 048* <http://wso2.com/>*
