|
|
@ -44,7 +44,9 @@ public class RedisUniversalConnectionImpl extends AbstractUniversalConnectionPro |
|
|
|
public JSONObject serialize(RedisDatabaseConnection connection) { |
|
|
|
public JSONObject serialize(RedisDatabaseConnection connection) { |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
jsonObject.put(BASIC_INFO, JSONObject.mapFrom(connection.clone())); |
|
|
|
JSONObject basicInfo = JSONObject.mapFrom(connection.clone()); |
|
|
|
|
|
|
|
basicInfo.put("password", DecisionServiceConstants.DEFAULT_PASSWORD); |
|
|
|
|
|
|
|
jsonObject.put(BASIC_INFO, basicInfo); |
|
|
|
//将ConnectionPoolConfig和RedisConnectionProxyConfig也一次塞给前台展示
|
|
|
|
//将ConnectionPoolConfig和RedisConnectionProxyConfig也一次塞给前台展示
|
|
|
|
jsonObject.put(POOL_INFO, JSONObject.mapFrom(RedisConnectionPoolConfig.getInstance().clone())); |
|
|
|
jsonObject.put(POOL_INFO, JSONObject.mapFrom(RedisConnectionPoolConfig.getInstance().clone())); |
|
|
|
JSONObject proxy = JSONObject.mapFrom(RedisConnectionProxyConfig.getInstance().clone()); |
|
|
|
JSONObject proxy = JSONObject.mapFrom(RedisConnectionProxyConfig.getInstance().clone()); |
|
|
|