Class ClusterInfo
java.lang.Object
org.springframework.data.redis.connection.ClusterInfo
ClusterInfo
gives access to cluster information such as cluster_state
and
cluster_slots_assigned
provided by the CLUSTER INFO
command.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionClusterInfo
(Properties clusterProperties) Creates newClusterInfo
for givenProperties
. -
Method Summary
-
Constructor Details
-
ClusterInfo
Creates newClusterInfo
for givenProperties
.- Parameters:
clusterProperties
- must not be null.
-
-
Method Details
-
getState
- Returns:
- null if no entry found for requested
ClusterInfo.Info.STATE
. - See Also:
-
getSlotsAssigned
- Returns:
- null if no entry found for requested
ClusterInfo.Info.SLOTS_ASSIGNED
. - See Also:
-
getSlotsOk
- Returns:
- null if no entry found for requested
ClusterInfo.Info.SLOTS_OK
. - See Also:
-
getSlotsPfail
- Returns:
- null if no entry found for requested
ClusterInfo.Info.SLOTS_PFAIL
. - See Also:
-
getSlotsFail
- Returns:
- null if no entry found for requested
ClusterInfo.Info.SLOTS_FAIL
. - See Also:
-
getKnownNodes
- Returns:
- null if no entry found for requested
ClusterInfo.Info.KNOWN_NODES
. - See Also:
-
getClusterSize
- Returns:
- null if no entry found for requested
ClusterInfo.Info.SIZE
. - See Also:
-
getCurrentEpoch
- Returns:
- null if no entry found for requested
ClusterInfo.Info.CURRENT_EPOCH
. - See Also:
-
getMessagesSent
- Returns:
- null if no entry found for requested
ClusterInfo.Info.MESSAGES_SENT
. - See Also:
-
getMessagesReceived
- Returns:
- null if no entry found for requested
ClusterInfo.Info.MESSAGES_RECEIVED
. - See Also:
-
get
- Parameters:
info
- must not be null- Returns:
- null if no entry found for requested
RedisClientInfo.INFO
.
-
get
- Parameters:
key
- must not be null or empty.- Returns:
- null if no entry found for requested
key
.
-
toString
-