(1)导入日志加入时间打印
(2)线程池等待sleep时间调整为10ms
This commit is contained in:
@@ -104,6 +104,8 @@ public class ConfigServiceUtil {
|
||||
* @return
|
||||
*/
|
||||
public static List<Integer> getId(int type,int num) throws MaatConvertException {
|
||||
logger.warn("get ids start");
|
||||
long start=System.currentTimeMillis();
|
||||
String result = null;
|
||||
String url = "";
|
||||
List<Integer> list = new ArrayList();
|
||||
@@ -140,6 +142,8 @@ public class ConfigServiceUtil {
|
||||
}else{
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+response.readEntity(String.class));
|
||||
}
|
||||
long end=System.currentTimeMillis();
|
||||
logger.warn("get ids finish,cost:"+(end-start));
|
||||
return list;
|
||||
}
|
||||
/**
|
||||
@@ -355,6 +359,8 @@ public class ConfigServiceUtil {
|
||||
* @throws MaatConvertException
|
||||
*/
|
||||
public static ToMaatResult postGroupReuseSources(String params) throws MaatConvertException{
|
||||
logger.warn("postGroupReuseSources start");
|
||||
long start=System.currentTimeMillis();
|
||||
String result = null;
|
||||
ToMaatResult bean = null;
|
||||
String url = Constants.SERVICE_URL+Constants.GROUP_REUSE_SOURCES;
|
||||
@@ -373,6 +379,8 @@ public class ConfigServiceUtil {
|
||||
}else{
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+response.readEntity(String.class));
|
||||
}
|
||||
long end=System.currentTimeMillis();
|
||||
logger.warn("postGroupReuseSources end,cost:"+(end-start));
|
||||
return bean;
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user