|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Topology<CL>
Method Summary | |
---|---|
void |
addPool(HostConnectionPool<CL> pool)
Add a pool without knowing it's token. |
HostConnectionPoolPartition<CL> |
getAllPools()
Return a partition that represents all hosts in the ring |
HostConnectionPoolPartition<CL> |
getPartition(BigInteger token)
Search for the partition that owns this token |
int |
getPartitionCount()
Get total number of tokens in the topology |
void |
refresh()
Refresh the internal state and apply the latency score strategy |
void |
removePool(HostConnectionPool<CL> pool)
Remove this pool from all partitions |
void |
resumePool(HostConnectionPool<CL> pool)
Resume a host that was previously down |
boolean |
setPools(Map<BigInteger,Collection<HostConnectionPool<CL>>> ring)
Refresh the internal topology structure |
void |
suspendPool(HostConnectionPool<CL> pool)
Suspend a host that is down |
Method Detail |
---|
boolean setPools(Map<BigInteger,Collection<HostConnectionPool<CL>>> ring)
ring
-
void addPool(HostConnectionPool<CL> pool)
pool
- void removePool(HostConnectionPool<CL> pool)
pool
- void resumePool(HostConnectionPool<CL> pool)
pool
- void suspendPool(HostConnectionPool<CL> pool)
pool
- void refresh()
HostConnectionPoolPartition<CL> getPartition(BigInteger token)
token
-
HostConnectionPoolPartition<CL> getAllPools()
int getPartitionCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |