|
|
@ -94,14 +94,17 @@ public class RedisClientEntry implements ClusterNode {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, String> info() {
|
|
|
|
public Map<String, String> info() {
|
|
|
|
RedisConnection c = connect();
|
|
|
|
RedisConnection c = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
c = connect();
|
|
|
|
return c.sync(RedisCommands.CLUSTER_INFO);
|
|
|
|
return c.sync(RedisCommands.CLUSTER_INFO);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
if (c != null) {
|
|
|
|
c.closeAsync();
|
|
|
|
c.closeAsync();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|