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 RedisClusterMaster
getMaster(String address)
Returns Redis Master node by defined address.Collection<RedisClusterMaster>
getMasters()
Returns collection of Redis Master nodes belongs to this Redis Cluster.RedisClusterSlave
getSlave(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:RedisCluster
Returns collection of Redis Master nodes belongs to this Redis Cluster.- Specified by:
getMasters
in interfaceRedisCluster
- Returns:
- Redis Master nodes
-
getMaster
public RedisClusterMaster getMaster(String address)
Description copied from interface:RedisCluster
Returns Redis Master node by defined address.Address example:
redis://127.0.0.1:9233
- Specified by:
getMaster
in interfaceRedisCluster
- Returns:
- Redis Master node
-
getSlaves
public Collection<RedisClusterSlave> getSlaves()
Description copied from interface:RedisCluster
Returns collection of Redis Slave nodes belongs to this Redis Cluster.- Specified by:
getSlaves
in interfaceRedisCluster
- Returns:
- Redis Slave nodes
-
getSlave
public RedisClusterSlave getSlave(String address)
Description copied from interface:RedisCluster
Returns Redis Slave node by defined address.Address example:
redis://127.0.0.1:9233
- Specified by:
getSlave
in interfaceRedisCluster
- Returns:
- Redis Slave node
-
-