1.生效区域下发格式修改 2.日志总量日志查询时间修改
This commit is contained in:
@@ -677,4 +677,8 @@ public final class Constants {
|
||||
public static final int HTTP_CONNECT_TIMEOUT= Configurations.getIntProperty("http_connect_timeout", 10000);
|
||||
public static final int HTTP_CONNECT_REQUEST_TIMEOUT = Configurations.getIntProperty("http_connect_request_timeout", 50000);
|
||||
public static final int HTTP_CONNECT_RETRY_TIMES = Configurations.getIntProperty("http_connect_retry_times", 3);
|
||||
|
||||
// 区域/运营商配置下发时tag值
|
||||
public static final String AREA_TAG=Configurations.getStringProperty("area_tag","location");
|
||||
public static final String ISP_TAG=Configurations.getStringProperty("isp_tag","isp");
|
||||
}
|
||||
|
||||
@@ -503,4 +503,18 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
public static String revertStr(String str,String regex){
|
||||
String[] split = str.split(regex);
|
||||
String value = "";
|
||||
for (int i = split.length-1; i >= 0 ; i--) {
|
||||
if( i != 0) {
|
||||
value += split[i]+"/";
|
||||
}else {
|
||||
value += split[i];
|
||||
}
|
||||
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user