Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.distribution.ch
Class OwnershipStatistics

java.lang.Object
  extended by 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

Constructor Summary
OwnershipStatistics(DefaultConsistentHash ch, List<Address> nodes)
           
OwnershipStatistics(List<Address> nodes)
           
OwnershipStatistics(OwnershipStatistics other)
           
 
Method Summary
 void decOwned(Address a)
           
 void decPrimaryOwned(Address a)
           
 int getOwned(Address a)
           
 int getPrimaryOwned(Address a)
           
 void incOwned(Address a)
           
 void incPrimaryOwned(Address a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwnershipStatistics

public OwnershipStatistics(List<Address> nodes)

OwnershipStatistics

public OwnershipStatistics(DefaultConsistentHash ch,
                           List<Address> nodes)

OwnershipStatistics

public OwnershipStatistics(OwnershipStatistics other)
Method Detail

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)

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.