public class ClusterInfo extends Object
ClusterInfo gives access to cluster information such as cluster_state and
cluster_slots_assigned provided by the CLUSTER INFO command.| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterInfo.Info |
| Constructor and Description |
|---|
ClusterInfo(Properties clusterProperties)
Creates new
ClusterInfo for given Properties. |
| Modifier and Type | Method and Description |
|---|---|
String |
get(ClusterInfo.Info info) |
String |
get(String key) |
Long |
getClusterSize() |
Long |
getCurrentEpoch() |
Long |
getKnownNodes() |
Long |
getMessagesReceived() |
Long |
getMessagesSent() |
Long |
getSlotsAssigned() |
Long |
getSlotsFail() |
Long |
getSlotsOk() |
Long |
getSlotsPfail() |
String |
getState() |
String |
toString() |
public ClusterInfo(Properties clusterProperties)
ClusterInfo for given Properties.clusterProperties - must not be null.@Nullable public String getState()
ClusterInfo.Info.STATE.ClusterInfo.Info.STATE@Nullable public Long getSlotsAssigned()
ClusterInfo.Info.SLOTS_ASSIGNED.ClusterInfo.Info.SLOTS_ASSIGNED@Nullable public Long getSlotsOk()
ClusterInfo.Info.SLOTS_OK.ClusterInfo.Info.SLOTS_OK@Nullable public Long getSlotsPfail()
ClusterInfo.Info.SLOTS_PFAIL.ClusterInfo.Info.SLOTS_PFAIL@Nullable public Long getSlotsFail()
ClusterInfo.Info.SLOTS_FAIL.ClusterInfo.Info.SLOTS_FAIL@Nullable public Long getKnownNodes()
ClusterInfo.Info.KNOWN_NODES.ClusterInfo.Info.KNOWN_NODES@Nullable public Long getClusterSize()
ClusterInfo.Info.SIZE.ClusterInfo.Info.SIZE@Nullable public Long getCurrentEpoch()
ClusterInfo.Info.CURRENT_EPOCH.ClusterInfo.Info.CURRENT_EPOCH@Nullable public Long getMessagesSent()
ClusterInfo.Info.MESSAGES_SENT.ClusterInfo.Info.MESSAGES_SENT@Nullable public Long getMessagesReceived()
ClusterInfo.Info.MESSAGES_RECEIVED.ClusterInfo.Info.MESSAGES_RECEIVED@Nullable public String get(ClusterInfo.Info info)
info - must not be nullRedisClientInfo.INFO.@Nullable public String get(String key)
key - must not be null or empty.key.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.