public interface RedisClusterNode extends RedisNode, RedisClusterNodeAsync
RedisNode.InfoSection
Modifier and Type | Method and Description |
---|---|
void |
clusterAddSlots(int... slots)
Adds slots to this Redis node
|
long |
clusterCountFailureReports(String nodeId)
Returns number of failure reports for Redis node by defined id
|
long |
clusterCountKeysInSlot(int slot)
Counts keys in defined slot
|
void |
clusterDeleteSlots(int... slots)
Removes slots from this Redis node
|
void |
clusterFlushSlots()
Removes all slots from this Redis node
|
void |
clusterForget(String nodeId)
Removes Redis node by defined id from Cluster
|
List<String> |
clusterGetKeysInSlot(int slot,
int count)
Returns keys in defines slot limited by count
|
String |
clusterId()
Returns id of this Redis node
|
Map<String,String> |
clusterInfo()
Returns cluster information reported by this Redis node
|
void |
clusterMeet(String address)
Joins Redis node by the defined address to Cluster
Address example:
redis://127.0.0.1:9233 |
void |
clusterReplicate(String nodeId)
Reconfigures this Redis node as replica of Redis node by defined id.
|
void |
clusterSetSlot(int slot,
SetSlotCommand command)
Sets slot to this Redis node according to defined command
|
void |
clusterSetSlot(int slot,
SetSlotCommand command,
String nodeId)
Sets slot to this Redis node according to defined command
|
Map<ClusterSlotRange,Set<String>> |
clusterSlots()
Return Redis Cluster slots mapped to Redis nodes
|
getAddr, info, ping, ping, time
clusterAddSlotsAsync, clusterCountFailureReportsAsync, clusterCountKeysInSlotAsync, clusterDeleteSlotsAsync, clusterFlushSlotsAsync, clusterForgetAsync, clusterGetKeysInSlotAsync, clusterIdAsync, clusterInfoAsync, clusterMeetAsync, clusterReplicateAsync, clusterSetSlotAsync, clusterSetSlotAsync, clusterSlotsAsync
infoAsync, pingAsync, pingAsync, timeAsync
Map<String,String> clusterInfo()
String clusterId()
void clusterAddSlots(int... slots)
slots
- slots to addvoid clusterReplicate(String nodeId)
nodeId
- Redis node Idvoid clusterForget(String nodeId)
nodeId
- void clusterDeleteSlots(int... slots)
slots
- slots to removelong clusterCountKeysInSlot(int slot)
slot
- slotList<String> clusterGetKeysInSlot(int slot, int count)
slot
- slotcount
- limits keys amountvoid clusterSetSlot(int slot, SetSlotCommand command)
slot
- slotcommand
- slot commandvoid clusterSetSlot(int slot, SetSlotCommand command, String nodeId)
slot
- slotcommand
- slot commandnodeId
- Redis node idvoid clusterMeet(String address)
Address example: redis://127.0.0.1:9233
address
- Redis node addresslong clusterCountFailureReports(String nodeId)
nodeId
- Redis node idvoid clusterFlushSlots()
Map<ClusterSlotRange,Set<String>> clusterSlots()
Copyright © 2014–2020 Redisson. All rights reserved.