...
|
...
|
@@ -5,6 +5,7 @@ import com.monitor.cmdb.service.ITypeInfoService; |
|
|
import com.monitor.middleware.memcached.constant.MemConstants;
|
|
|
import com.monitor.middleware.memcached.model.MemcacheView;
|
|
|
|
|
|
import com.monitor.middleware.memcached.service.MemcachedMonitService;
|
|
|
import com.monitor.model.response.BaseResponse;
|
|
|
|
|
|
import org.slf4j.Logger;
|
...
|
...
|
@@ -33,14 +34,14 @@ public class MemcachedCtrl { |
|
|
private static final String QCLOUD_JAVA_L2 = "qcloud_java_l2";
|
|
|
|
|
|
@Autowired
|
|
|
private ITypeInfoService typeService;
|
|
|
|
|
|
@Autowired
|
|
|
IMObjectInfoService imObjectInfoService;
|
|
|
|
|
|
@Autowired
|
|
|
ITypeInfoService iTypeInfoService;
|
|
|
|
|
|
@Autowired
|
|
|
MemcachedMonitService memcachedMonitService;
|
|
|
|
|
|
/* @RequestMapping(value = "/allMemcached")
|
|
|
public BaseResponse queryAllMemcached() {
|
|
|
BaseResponse response = new BaseResponse();
|
...
|
...
|
@@ -175,7 +176,11 @@ public class MemcachedCtrl { |
|
|
|
|
|
@RequestMapping(value = "/updateTime")
|
|
|
public String queryUpdateTime() {
|
|
|
return MemConstants.MEMCACHED_UPDATE_TIME.get("memcachedUpdateTime");
|
|
|
Date date = new Date(memcachedMonitService.getUpdateTime());
|
|
|
|
|
|
String update = (new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss")).format(date);
|
|
|
|
|
|
return update;
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|