配置文件重命名:

1、matt.properties --> applicationConfig-maatOracle.properties;
2、serviceTable.properties --> applicationConfig-rule.properties;
3、table.properties --> applicationLog-hive.properties;
4、commonSources.xml --> applicationConfig-parser.xml;
commonSourcesSchema.xsd --> applicationConfig-parser.schema.xsd;
5、maat.xml --> applicationConfig-maatRedis.xml; maat.xsd -->
applicationConfig-maatRedis.schema.xml;
This commit is contained in:
zhangdongxu
2018-07-13 15:20:04 +08:00
parent db4bdd7722
commit 30e09bfeda
10 changed files with 18 additions and 17 deletions

View File

@@ -13,9 +13,9 @@ public final class Configurations {
static {
try {
prop.load(Configurations.class.getResourceAsStream("/nis.properties"));
prop.load(Configurations.class.getResourceAsStream("/table.properties"));
prop.load(Configurations.class.getResourceAsStream("/matt.properties"));
prop.load(Configurations.class.getResourceAsStream("/serviceTable.properties"));
prop.load(Configurations.class.getResourceAsStream("/applicationLog-hive.properties"));
prop.load(Configurations.class.getResourceAsStream("/applicationConfig-maatOracle.properties"));
prop.load(Configurations.class.getResourceAsStream("/applicationConfig-rule.properties"));
} catch (Exception e) {
prop = null;

View File

@@ -27,7 +27,7 @@ import com.nis.domain.restful.CommonSourceFieldCfg;
*/
public class ReadCommSourceXmlUtil {
private static Logger logger = LoggerFactory.getLogger(ReadCommSourceXmlUtil.class);
private static String XMLPATH = "/commonSources/commonSources.xml";
private static String XMLPATH = "/commonSources/applicationConfig-parser.xml";
public static Map<String, List<CommonSourceFieldCfg>> commonSourceCfgMap = new HashMap<String, List<CommonSourceFieldCfg>>();
static {
@@ -103,7 +103,7 @@ public class ReadCommSourceXmlUtil {
}
} catch (Exception e) {
e.printStackTrace();
logger.error("加载commonSources.xml失败", e);
logger.error("加载applicationConfig-parser.xml失败", e);
}
}

View File

@@ -38,8 +38,8 @@ import com.nis.domain.MaatXmlSeq;
*/
public class ReadMaatXmlUtil {
private static Logger logger = LoggerFactory.getLogger(ReadMaatXmlUtil.class);
private static String XMLPATH = "/maatXml/maat.xml";
private static String XSDPATH = "/maatXml/maat.xsd";
private static String XMLPATH = "/maatXml/applicationConfig-maatRedis.xml";
private static String XSDPATH = "/maatXml/applicationConfig-maatRedis.schema.xsd";
public static Map<Integer, MaatXmlConfig> map = new HashMap<Integer, MaatXmlConfig>();
static {
@@ -159,7 +159,7 @@ public class ReadMaatXmlUtil {
}
}
} catch (Exception e) {
logger.error("加载maat.xml失败", e);
logger.error("加载applicationConfig-maatRedis.xml失败", e);
}
}

View File

@@ -1,3 +1,5 @@
#####配置文件用途MAAT配置转换Oracle存储结构
#编译表表名
compileTabName=MAAT_CONFIG_COMPILE
#编译表 新增配置时添加的字段 英文逗号分隔

View File

@@ -1,3 +1,5 @@
#配置文件用途:业务配置规则(关系、多分发路由、阀门添加属性)
#################################################################################
####maat格式配置各业务类型对应的编译,分组,域配置等的表名
####1:固定需要写service=业务类型1:动作;业务类型2:动作 用于验证maat配置service与action对应关系
@@ -18,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;529:48;544:2;545:2;560:80;561:80;768:96;848:1;1024:1;1025: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;528:48;529:48;544:2;545:2;560:80;561:80;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 无表结构 不确定表是不是字符串类
@@ -144,8 +146,6 @@ 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;
#0x300 IP复用策略配置
768=10:IR_POLICY_COMPILE;11:IR_POLICY_GROUP;12:IR_POLICY_IP;18:NTC_IP_RANGE
#0x350 IP复用策略配置
848=10:IPD_DYN_COMPILE;11:IPD_DYN_GROUP;14:IPD_RELATED_DOMAIN;18:NTC_IP_RANGE
#将APP用户定义特征发现0x400中APP_PKT_BIN表拆分到新的serive(0x403)
#0x400 APP HTTP特征发现
@@ -217,9 +217,6 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64:16;65:16;261:16;262:16;263:16;264:16
#0x340 IP复用地址池配置回调
832=0:IR_STATIC_IP_POOL_CB
#0x401 APP内置规则定义特征发现 monit APP_DPKT_FEATURE 无表结构
#1025=
##各业务类型对应的redisdb,业务类型:redisdb,多个业务以“;”分隔,多个db以“,”数量不能超过6个
#系统简称对应的redisDBIndex: NTC(1-255):2 MM(256-511):3 PXY(512-767):4 IR(768-1023):5 DK(1024-1279):6 阀门:7
#APP 0x400-0x420 目前配置入到NTC系统对应的库中
@@ -245,7 +242,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:2,7;
#0x340 IP复用地址池配置回调832:2,4,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;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;529:4;544:4;545:4;560:4;561:4;768:4;848:2;1024:2,6,7;1025:2;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:2,7;4:2,7;5:2;25:2,7;28:2,7;64:2;65:2;261:3;262:3;263:3;264:3;265:3;266:3;389:3;390:3;391:3;392:3;393:3;394:3;832:2,4,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;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;529:4;544:4;545:4;560:4;561: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:2,7;4:2,7;5:2;25:2,7;28:2,7;64:2;65:2;261:3;262:3;263:3;264:3;265:3;266:3;389:3;390:3;391:3;392:3;393:3;394:3;832:2,4,7
##maat配置入阀门需要将编译中的部分参数写到域配置中目前最多包含ACTIONSERVICEUSER_REGION三个属性

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<t:commonSources xmlns:t="http://www.w3school.com.cn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn commonSourcesSchema.xsd">
xsi:schemaLocation="http://www.w3school.com.cn applicationConfig-parser.schema.xsd">
<!--配置文件用途: 回调配置通过通用接口入redis时配置属性解析和规则验证 -->
<!--
#0x03 IP地址丢弃 3=0:INLINE_IP_CB
#0x04 IP地址丢弃 4=0:INLINE_IP_CB

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<p:maat xmlns:p="http://www.w3school.com.cn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3school.com.cn maat.xsd">
xsi:schemaLocation="http://www.w3school.com.cn applicationConfig-maatRedis.schema.xsd">
<!--
#0x105 音频样例阻断 261=0:MM_SAMPLE_AUDIO