|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.topology.CacheTopology
public class CacheTopology
The status of a cache from a distribution/state transfer point of view.
The pending CH can benull
if we don't have a state transfer in progress.
The topologyId
is incremented every time the topology changes (i.e. state transfer
starts or ends). It is not modified when the consistent hashes are updated without requiring state
transfer (e.g. when a member leaves).
Nested Class Summary | |
---|---|
static class |
CacheTopology.Externalizer
|
Constructor Summary | |
---|---|
CacheTopology(int topologyId,
ConsistentHash currentCH,
ConsistentHash pendingCH)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
ConsistentHash |
getCurrentCH()
The current consistent hash. |
List<Address> |
getMembers()
|
ConsistentHash |
getPendingCH()
The future consistent hash. |
ConsistentHash |
getReadConsistentHash()
Read operations should always go to the "current" members. |
int |
getTopologyId()
|
ConsistentHash |
getWriteConsistentHash()
When there is a rebalance in progress, write operations should go to the "pending" members. |
int |
hashCode()
|
void |
logRoutingTableInformation()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheTopology(int topologyId, ConsistentHash currentCH, ConsistentHash pendingCH)
Method Detail |
---|
public int getTopologyId()
public ConsistentHash getCurrentCH()
public ConsistentHash getPendingCH()
null
if there is no rebalance in progress.
public List<Address> getMembers()
public ConsistentHash getReadConsistentHash()
public ConsistentHash getWriteConsistentHash()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public final void logRoutingTableInformation()
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |