Example usage for org.springframework.data.redis.connection ClusterInfo ClusterInfo

List of usage examples for org.springframework.data.redis.connection ClusterInfo ClusterInfo

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection ClusterInfo ClusterInfo.

Prototype

public ClusterInfo(Properties clusterProperties) 

Source Link

Document

Creates new ClusterInfo for given Properties .

Usage

From source file:org.springframework.data.redis.connection.jedis.JedisClusterConnection.java

@Override
public ClusterInfo clusterGetClusterInfo() {

    return new ClusterInfo(JedisConverters.toProperties(clusterCommandExecutor
            .executeCommandOnArbitraryNode((JedisClusterCommandCallback<String>) Jedis::clusterInfo)
            .getValue()));/*from   w  w  w. ja v a 2 s. c o m*/
}

From source file:org.springframework.data.redis.connection.lettuce.LettuceClusterConnection.java

@Override
public ClusterInfo clusterGetClusterInfo() {

    return clusterCommandExecutor.executeCommandOnArbitraryNode(
            (LettuceClusterCommandCallback<ClusterInfo>) client -> new ClusterInfo(
                    LettuceConverters.toProperties(client.clusterInfo())))
            .getValue();/*w w  w . j a v  a  2  s .  c  o  m*/
}