Number of partitions
Hi there,
I'm calculating the number of partitions in the space using the following:
public int getNumberOfPartitions(){
int partitions = 1;
String totalmembers = gigaSpace.getSpace().getURL().getProperty(SpaceURL.CLUSTERTOTAL_MEMBERS);
if (total_members != null){
partitions =
Integer.valueOf(totalmembers.substring(0,totalmembers.indexOf(","))).intValue();
}
return partitions;
}
But the getProperty method is deprecated. Is there a different method/way of doing the above. I'm using XAP 9.0
Thanks in advance
This thread was imported from the previous forum.
For your reference, the original is available here