redis 서버 추가
This commit is contained in:
@@ -56,23 +56,31 @@ public class RedisUserInfoService {
|
||||
String worldKey_a = "serverinfo:Keys:ChannelKey:001";
|
||||
String worldKey_b = "serverinfo:Keys:ChannelKey:002";
|
||||
String worldKey_c = "serverinfo:Keys:ChannelKey:003";
|
||||
String worldKey_d = "serverinfo:Keys:ChannelKey:004";
|
||||
String worldKey_e = "serverinfo:Keys:ChannelKey:005";
|
||||
String indunKey = "serverinfo:Keys:IndunKey";
|
||||
|
||||
List<String> keys_a = getKeys(worldKey_a);
|
||||
List<String> keys_b = getKeys(worldKey_b);
|
||||
List<String> keys_c = getKeys(worldKey_c);
|
||||
List<String> keys_d = getKeys(indunKey);
|
||||
List<String> keys_d = getKeys(worldKey_d);
|
||||
List<String> keys_e = getKeys(worldKey_e);
|
||||
List<String> keys_indun = getKeys(indunKey);
|
||||
|
||||
List<String> channels_a = getValueList(keys_a);
|
||||
List<String> channels_b = getValueList(keys_b);
|
||||
List<String> channels_c = getValueList(keys_c);
|
||||
List<String> channels_d = getValueList(keys_d);
|
||||
List<String> channels_e = getValueList(keys_e);
|
||||
List<String> indun = getValueList(keys_indun);
|
||||
|
||||
List<String> allChannels = new ArrayList<>();
|
||||
allChannels.addAll(channels_a);
|
||||
allChannels.addAll(channels_b);
|
||||
allChannels.addAll(channels_c);
|
||||
allChannels.addAll(channels_d);
|
||||
allChannels.addAll(channels_e);
|
||||
allChannels.addAll(indun);
|
||||
|
||||
log.info("noticeJob getAllServerList serverList : {}", allChannels);
|
||||
|
||||
@@ -84,19 +92,27 @@ public class RedisUserInfoService {
|
||||
String worldKey_a = "serverinfo:Keys:ChannelKey:001";
|
||||
String worldKey_b = "serverinfo:Keys:ChannelKey:002";
|
||||
String worldKey_c = "serverinfo:Keys:ChannelKey:003";
|
||||
String worldKey_d = "serverinfo:Keys:ChannelKey:004";
|
||||
String worldKey_e = "serverinfo:Keys:ChannelKey:005";
|
||||
|
||||
List<String> keys_a = getKeys(worldKey_a);
|
||||
List<String> keys_b = getKeys(worldKey_b);
|
||||
List<String> keys_c = getKeys(worldKey_c);
|
||||
List<String> keys_d = getKeys(worldKey_d);
|
||||
List<String> keys_e = getKeys(worldKey_e);
|
||||
|
||||
List<String> channels_a = getValueList(keys_a);
|
||||
List<String> channels_b = getValueList(keys_b);
|
||||
List<String> channels_c = getValueList(keys_c);
|
||||
List<String> channels_d = getValueList(keys_d);
|
||||
List<String> channels_e = getValueList(keys_e);
|
||||
|
||||
List<String> allChannels = new ArrayList<>();
|
||||
allChannels.addAll(channels_a);
|
||||
allChannels.addAll(channels_b);
|
||||
allChannels.addAll(channels_c);
|
||||
allChannels.addAll(channels_d);
|
||||
allChannels.addAll(channels_e);
|
||||
|
||||
String server_name = allChannels.stream().findFirst().get();
|
||||
log.info("getFirstChannel serverList : {}", allChannels);
|
||||
|
||||
Reference in New Issue
Block a user