|
|||||||||
| 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 its token. |
TokenHostConnectionPoolPartition<CL> |
getAllPools()
Return a partition that represents all hosts in the ring |
TokenHostConnectionPoolPartition<CL> |
getPartition(java.nio.ByteBuffer rowkey)
Get the partition best suited to handle a row key |
TokenHostConnectionPoolPartition<CL> |
getPartition(java.lang.String token)
Return the partition for a specific token |
int |
getPartitionCount()
|
java.util.List<java.lang.String> |
getPartitionNames()
|
java.util.Map<java.lang.String,TokenHostConnectionPoolPartition<CL>> |
getPartitions()
|
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(java.util.Collection<HostConnectionPool<CL>> ring)
Refresh the internal topology structure |
void |
suspendPool(HostConnectionPool<CL> pool)
Suspend a host that is down |
| Method Detail |
|---|
boolean setPools(java.util.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()
TokenHostConnectionPoolPartition<CL> getPartition(java.nio.ByteBuffer rowkey)
token - TokenHostConnectionPoolPartition<CL> getAllPools()
int getPartitionCount()
java.util.List<java.lang.String> getPartitionNames()
java.util.Map<java.lang.String,TokenHostConnectionPoolPartition<CL>> getPartitions()
TokenHostConnectionPoolPartition<CL> getPartition(java.lang.String token)
token -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||