org.infinispan.distribution.ch
Class OwnershipStatistics
java.lang.Object
org.infinispan.distribution.ch.OwnershipStatistics
public class OwnershipStatistics
- extends Object
This class holds statistics about a consistent hash. It counts how many segments are owned or primary-owned by each
member.
- Since:
- 5.2
- Author:
- Dan Berindei
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwnershipStatistics
public OwnershipStatistics(List<Address> nodes)
OwnershipStatistics
public OwnershipStatistics(DefaultConsistentHash ch,
List<Address> nodes)
OwnershipStatistics
public OwnershipStatistics(OwnershipStatistics other)
getPrimaryOwned
public int getPrimaryOwned(Address a)
getOwned
public int getOwned(Address a)
incPrimaryOwned
public void incPrimaryOwned(Address a)
incOwned
public void incOwned(Address a)
decPrimaryOwned
public void decPrimaryOwned(Address a)
decOwned
public void decOwned(Address a)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.