Merge branch 'Release-1.1' into develop
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@@ -41,6 +42,10 @@ public class NtcDnsLog extends LogEntity {
|
||||
|
||||
@ApiModelProperty(value="DNS_SUB", required=true)
|
||||
protected Integer dnsSub ;
|
||||
|
||||
@ApiModelProperty(value="查询内容", required=true)
|
||||
protected String searchQname ;
|
||||
|
||||
|
||||
public Integer getRd() {
|
||||
return rd;
|
||||
@@ -121,4 +126,19 @@ public class NtcDnsLog extends LogEntity {
|
||||
public void setDnsSub(Integer dnsSub) {
|
||||
this.dnsSub = dnsSub;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param searchQName the searchQName to set
|
||||
*/
|
||||
public void setSearchQname(String searchQname) {
|
||||
this.searchQname = searchQname;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the searchQName
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchQname() {
|
||||
return searchQname;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@@ -21,8 +22,11 @@ public class NtcSslLog extends LogEntity {
|
||||
protected String san;
|
||||
|
||||
@ApiModelProperty(value="证书授权机构", required=true)
|
||||
protected String ca;
|
||||
protected String cn;
|
||||
|
||||
@ApiModelProperty(value="SNI", required=true)
|
||||
protected String searchSni ;
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
@@ -47,11 +51,26 @@ public class NtcSslLog extends LogEntity {
|
||||
this.san = san;
|
||||
}
|
||||
|
||||
public String getCa() {
|
||||
return ca;
|
||||
public String getCn() {
|
||||
return cn;
|
||||
}
|
||||
|
||||
public void setCa(String ca) {
|
||||
this.ca = ca;
|
||||
public void setCn(String cn) {
|
||||
this.cn = cn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param searchSni the searchSni to set
|
||||
*/
|
||||
public void setSearchSni(String searchSni) {
|
||||
this.searchSni = searchSni;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the searchSni
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchSni() {
|
||||
return searchSni;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ public class SQLHelper {
|
||||
*/
|
||||
public static Long getCount(final String sql, final Connection connection, final MappedStatement mappedStatement,
|
||||
final Object parameterObject, final BoundSql boundSql, Log log) throws SQLException {
|
||||
logger.info("oracle查询count开始----"+System.currentTimeMillis());
|
||||
logger.info("count查询开始----"+System.currentTimeMillis());
|
||||
String dbName = getDBType();
|
||||
final String countSql;
|
||||
if ("oracle".equals(dbName)) {
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
<result column="version" jdbcType="VARCHAR" property="version" />
|
||||
<result column="sni" jdbcType="VARCHAR" property="sni" />
|
||||
<result column="san" jdbcType="VARCHAR" property="san" />
|
||||
<result column="ca" jdbcType="VARCHAR" property="ca" />
|
||||
<result column="cn" jdbcType="VARCHAR" property="cn" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
@@ -32,6 +33,8 @@ import com.nis.util.ServiceAndRDBIndexReal;
|
||||
public class ConfigJedisServiceimpl implements ConfigRedisService {
|
||||
private static Logger logger = LoggerFactory.getLogger(ConfigJedisServiceimpl.class);
|
||||
private static final int TAPREDISDB = Configurations.getIntProperty("tapRedisDb", 7);
|
||||
// 用于在实时统计配置后面添加时间,方便读取入库时间
|
||||
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
|
||||
public boolean saveUnMaatConfig(Map<Integer, List<Map<String, String>>> configMap) {
|
||||
if (configMap != null && configMap.size() > 0) {
|
||||
@@ -384,6 +387,9 @@ public class ConfigJedisServiceimpl implements ConfigRedisService {
|
||||
valBF.append(valStr.trim());
|
||||
}
|
||||
}
|
||||
//向实时统计库中添加时间标识,方便人眼直观识别入库时间
|
||||
valBF.append("\t");
|
||||
valBF.append(sdf.format(new Date()));
|
||||
String maatKey = keyBF.toString();
|
||||
transaction.set(maatKey.toUpperCase(), valBF.toString());
|
||||
String zset = maatKey.replace("EFFECTIVE_RULE:", "ADD,");
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
##回流 0x60 96 loop
|
||||
##白名单 0x80 128 whitelist
|
||||
|
||||
service=1:128;2:128;16:16;17:16;18:16;19:16;20:16;21:16;22:16;23:16;24:16;26:16;27:16;30:16;31:16;32:16;33:16;34:16;128:1;129:1;130:1;131:1;132:1;133:1;134:1;135:1;136:1;137:1;138:1;139:1;140:1;141:1;142:1;143:1;144:1;145:1;256:16;257:16;258:16;259:16;260:16;384:1;385:1;386:1;387:1;388:1;512:1;513:1;528:48;544:2;560:80;576:16;592:1;750:128;768:96;1024:1;1026:1;1027:1;1028:1;1040:32;1056:64;1057:64;1058:64;
|
||||
service=1:128;2:128;16:16;17:16;18:16;19:16;20:16;21:16;22:16;23:16;24:16;26:16;27:16;30:16;31:16;32:16;33:16;34:16;128:1;129:1;130:1;131:1;132:1;133:1;134:1;135:1;136:1;137:1;138:1;139:1;140:1;141:1;142:1;143:1;144:1;145:1;256:16;257:16;258:16;259:16;260:16;384:1;385:1;386:1;387:1;388:1;512:1;513:1;521:128;528:48;544:2;560:80;576:16;592:1;750:128;768:96;1024:1;1026:1;1027:1;1028:1;1040:32;1056:64;1057:64;1058:64;
|
||||
|
||||
#0x1E 0x8E 有问题:14:NTC_XMPP_REGION,NTC_XMPP_CONT 无表结构 不确定表是不是字符串类
|
||||
|
||||
@@ -128,7 +128,8 @@ service=1:128;2:128;16:16;17:16;18:16;19:16;20:16;21:16;22:16;23:16;24:16;26:16;
|
||||
512=10:PXY_INTERCEPT_COMPILE;11:PXY_INTERCEPT_GROUP;12:PXY_INTERCEPT_IP;18:NTC_IP_RANGE
|
||||
#0x201 PXY拦截域名
|
||||
513=10:PXY_INTERCEPT_COMPILE;11:PXY_INTERCEPT_GROUP;14:PXY_INTERCEPT_DOMAIN;18:NTC_IP_RANGE
|
||||
|
||||
#0x209 PXY拦截白名单
|
||||
521=10:PXY_INTERCEPT_COMPILE;11:PXY_INTERCEPT_GROUP;12:PXY_INTERCEPT_IP;14:PXY_INTERCEPT_DOMAIN
|
||||
#0x210 PXY HTTP重定向
|
||||
528=10:PXY_CTRL_COMPILE;11:PXY_CTRL_GROUP;12:PXY_CTRL_IP;14:PXY_CTRL_HTTP_URL,PXY_CTRL_HTTP_REQ_BODY;15:PXY_CTRL_HTTP_REQ_HDR,PXY_CTRL_HTTP_RES_HDR;18:NTC_IP_RANGE
|
||||
#0x220 PXY HTTP 转发
|
||||
@@ -240,7 +241,7 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64:16;65:16;261:16;262:16;263:16;264:16
|
||||
#0x19 IPSec丢弃 25:7;
|
||||
#0x340 IP复用地址池配置(回调)832:2,4,5,7
|
||||
##########
|
||||
serviceDBIndex=1:2,3,4,6,7;2:2,3,4,6,7;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,6,7;34:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,6,7;256:3;257:3;258:3;259:3;260:3;384:3;385:3;386:3;387:3;388:3;512:4,7;513:4,2,7;528:4;544:4;560:4;576:4;592:4;750:4;768:5;1024:2,6,7;1026:2,6,7;1027:2;1028:2,6,7;1040:2,6,7;1056:2,6,7;1057:6,7;1058:6,2,7;3:7;4:7;5:2;25:7;28:7;64:2;65:2;261:8;262:9;263:10;264:11;265:3;266:3;389:3;390:3;391:3;392:3;393:3;394:3;832:2,4,5,7
|
||||
serviceDBIndex=1:2,3,4,6,7;2:2,3,4,6,7;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,6,7;34:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,6,7;256:3;257:3;258:3;259:3;260:3;384:3;385:3;386:3;387:3;388:3;512:4,7;513:4,2,7;521:4;528:4;544:4;560:4;576:4;592:4;750:4;768:5;1024:2,6,7;1026:2,6,7;1027:2;1028:2,6,7;1040:2,6,7;1056:2,6,7;1057:6,7;1058:6,2,7;3:7;4:7;5:2;25:7;28:7;64:2;65:2;261:8;262:9;263:10;264:11;265:3;266:3;389:3;390:3;391:3;392:3;393:3;394:3;832:2,4,5,7
|
||||
|
||||
|
||||
##maat配置入阀门需要将编译中的部分参数写到域配置中,目前最多包含ACTION,SERVICE,USER_REGION三个属性
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
#==========日志库 Mysql=======================
|
||||
jdbc.log.driver=com.mysql.jdbc.Driver
|
||||
#元辰鑫内网
|
||||
jdbc.log.url=jdbc:mysql://10.0.6.249:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
|
||||
#华严
|
||||
#jdbc.log.url=jdbc:mysql://192.168.11.242:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
|
||||
#元辰鑫外网
|
||||
#jdbc.log.url=jdbc:mysql://192.168.10.204:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
|
||||
#亦庄
|
||||
#jdbc.log.url=jdbc:mysql://192.168.10.212:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
|
||||
jdbc.log.username=root
|
||||
jdbc.log.key=9Pjh5K20Sho0lnWMClUXYA==
|
||||
jdbc.log.password=D3ptWYX8vx/GoEXaSrJycQ==
|
||||
@@ -34,7 +40,17 @@ bonecp.statementsCacheSize=100
|
||||
|
||||
#A版日志库
|
||||
jdbc.hive.driver=org.apache.hive.jdbc.HiveDriver
|
||||
#元辰鑫内网
|
||||
jdbc.hive.url=jdbc:hive2://10.0.6.202:10000/maat
|
||||
#华严
|
||||
#jdbc.hive.url=jdbc:hive2://192.168.11.243:10000/maat
|
||||
#元辰鑫外网
|
||||
#jdbc.hive.url=jdbc:hive2://192.168.10.22:10000/maat
|
||||
#亦庄
|
||||
#jdbc.hive.url=jdbc:hive2://192.168.10.216:10000/maat
|
||||
#亦庄
|
||||
#高可用集群连接,注意使用此种方法需要配置hosts,主机名与ip的对应关系
|
||||
#jdbc.hive.url=jdbc:hive2://192.168.10.216:2181,192.168.10.217:2181,192.168.10.218:2181/maat;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
|
||||
jdbc.hive.username=xa_z2_mesa
|
||||
jdbc.hive.key=aC/8fTC9vfPVhCk+CDzbAQ==
|
||||
#加密后密码
|
||||
@@ -53,8 +69,14 @@ bonecp.hive.statementsCacheSize=100
|
||||
#####################################################################################################################################
|
||||
##redis连接
|
||||
#####################################################################################################################################
|
||||
#元辰鑫内网
|
||||
redis.host=10.0.6.249
|
||||
#华严
|
||||
#redis.host=192.168.11.243
|
||||
#元辰鑫外网
|
||||
#redis.host=192.168.10.205
|
||||
#亦庄
|
||||
#redis.host=192.168.10.215
|
||||
redis.port=6379
|
||||
redis.pass=
|
||||
redis.maxIdle=5
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
</p:maatType>
|
||||
|
||||
<p:maatType
|
||||
service="1;2;16;17;18;19;20;21;22;23;24;26;27;30;31;32;33;34;128;129;130;131;132;133;134;135;136;137;138;139;140;141;142;143;144;145;256;257;258;259;260;384;385;386;387;388;512;513;528;544;560;576;592;750;768;848;1024;1025;1026;1027;1028;1040;1056;1057;1058">
|
||||
service="1;2;16;17;18;19;20;21;22;23;24;26;27;30;31;32;33;34;128;129;130;131;132;133;134;135;136;137;138;139;140;141;142;143;144;145;256;257;258;259;260;384;385;386;387;388;512;513;521;528;544;560;576;592;750;768;848;1024;1025;1026;1027;1028;1040;1056;1057;1058">
|
||||
<p:expressions>
|
||||
<p:keyExpression>EFFECTIVE_RULE;:;{compile_table_name};,;[compile_id]</p:keyExpression>
|
||||
<p:valueExpression>[compile_id];\t;[service];\t;[action];\t;[do_blacklist];\t;[do_log];\t;[effective_range];\t;[user_region];\t;[is_valid];\t;[group_num];\t;[father_cfg_id];\t;[op_time];&nbsp;0;\n</p:valueExpression>
|
||||
|
||||
Reference in New Issue
Block a user