not in good moods...
This commit is contained in:
parent
5a33a50fd6
commit
36236fc501
@ -4,8 +4,8 @@ import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import static com.xhpc.common.data.redis.StaticBeanUtil.REDIS;
|
||||
import static com.xhpc.common.dto.ConnectorStatusInfo.OFF_LINE;
|
||||
@ -19,9 +19,9 @@ public class HBCheckTask {
|
||||
protected void run() {
|
||||
|
||||
String svcSrvKey = "svcSrvGuns:".concat(getLocalIPAndPort());
|
||||
List<String> cacheGunkeyList = REDIS.getCacheList(svcSrvKey);
|
||||
Set<String> cacheGunkeySet = REDIS.getCacheSet(svcSrvKey);
|
||||
Long now = Calendar.getInstance().getTimeInMillis();
|
||||
for (String gunkey : cacheGunkeyList) {
|
||||
for (String gunkey : cacheGunkeySet) {
|
||||
Map<String, Object> cacheGun = REDIS.getCacheMap(gunkey);
|
||||
Long hbtime = (Long) cacheGun.get("hbtime");
|
||||
hbtime = hbtime == null ? 0 : hbtime;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user