Package org.redisson.redisnode
Class RedissonClusterNodes
- java.lang.Object
-
- org.redisson.redisnode.RedissonBaseNodes
-
- org.redisson.redisnode.RedissonClusterNodes
-
- All Implemented Interfaces:
BaseRedisNodes,RedisCluster
public class RedissonClusterNodes extends RedissonBaseNodes implements RedisCluster
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonClusterNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisClusterMastergetMaster(String address)Returns Redis Master node by defined address.Collection<RedisClusterMaster>getMasters()Returns collection of Redis Master nodes belongs to this Redis Cluster.RedisClusterSlavegetSlave(String address)Returns Redis Slave node by defined address.Collection<RedisClusterSlave>getSlaves()Returns collection of Redis Slave nodes belongs to this Redis Cluster.-
Methods inherited from class org.redisson.redisnode.RedissonBaseNodes
getNode, getNodes, getNodes, pingAll, pingAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.redisson.api.redisnode.BaseRedisNodes
pingAll, pingAll
-
-
-
-
Constructor Detail
-
RedissonClusterNodes
public RedissonClusterNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
-
-
Method Detail
-
getMasters
public Collection<RedisClusterMaster> getMasters()
Description copied from interface:RedisClusterReturns collection of Redis Master nodes belongs to this Redis Cluster.- Specified by:
getMastersin interfaceRedisCluster- Returns:
- Redis Master nodes
-
getMaster
public RedisClusterMaster getMaster(String address)
Description copied from interface:RedisClusterReturns Redis Master node by defined address.Address example:
redis://127.0.0.1:9233- Specified by:
getMasterin interfaceRedisCluster- Returns:
- Redis Master node
-
getSlaves
public Collection<RedisClusterSlave> getSlaves()
Description copied from interface:RedisClusterReturns collection of Redis Slave nodes belongs to this Redis Cluster.- Specified by:
getSlavesin interfaceRedisCluster- Returns:
- Redis Slave nodes
-
getSlave
public RedisClusterSlave getSlave(String address)
Description copied from interface:RedisClusterReturns Redis Slave node by defined address.Address example:
redis://127.0.0.1:9233- Specified by:
getSlavein interfaceRedisCluster- Returns:
- Redis Slave node
-
-