public class OwnershipStatistics extends Object
Constructor and Description |
---|
OwnershipStatistics(ConsistentHash ch) |
OwnershipStatistics(ConsistentHash ch,
List<Address> activeNodes) |
OwnershipStatistics(List<Address> nodes) |
OwnershipStatistics(OwnershipStatistics other) |
Modifier and Type | Method and Description |
---|---|
void |
decOwned(Address a) |
void |
decOwned(int nodeIndex) |
void |
decPrimaryOwned(Address a) |
void |
decPrimaryOwned(int nodeIndex) |
int |
getOwned(Address a) |
int |
getOwned(int nodeIndex) |
int |
getPrimaryOwned(Address a) |
int |
getPrimaryOwned(int nodeIndex) |
void |
incOwned(Address a) |
void |
incOwned(int nodeIndex) |
void |
incOwned(int nodeIndex,
boolean primary) |
void |
incPrimaryOwned(Address a) |
void |
incPrimaryOwned(int nodeIndex) |
int |
sumOwned() |
int |
sumPrimaryOwned() |
String |
toString() |
public OwnershipStatistics(ConsistentHash ch, List<Address> activeNodes)
public OwnershipStatistics(ConsistentHash ch)
public OwnershipStatistics(OwnershipStatistics other)
public int getPrimaryOwned(Address a)
public int getOwned(Address a)
public void incPrimaryOwned(Address a)
public void incOwned(Address a)
public void decPrimaryOwned(Address a)
public void decOwned(Address a)
public int getPrimaryOwned(int nodeIndex)
public int getOwned(int nodeIndex)
public void incPrimaryOwned(int nodeIndex)
public void incOwned(int nodeIndex)
public void incOwned(int nodeIndex, boolean primary)
public void decPrimaryOwned(int nodeIndex)
public void decOwned(int nodeIndex)
public int sumPrimaryOwned()
public int sumOwned()
Copyright © 2021 JBoss by Red Hat. All rights reserved.