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;
111 lines
4.1 KiB
XML
111 lines
4.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3school.com.cn"
|
|
targetNamespace="http://www.w3school.com.cn" elementFormDefault="qualified">
|
|
|
|
|
|
<xs:element name="maat">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="maatType">
|
|
<xs:annotation>
|
|
<xs:documentation>定义某个业务类型的maat规则
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<!-- <xs:element name="redisDB"> -->
|
|
<!-- <xs:annotation> -->
|
|
<!-- <xs:documentation><![CDATA[使用哪个redis数据库,redis默认只有0-15,共16个数据库]]> -->
|
|
<!-- </xs:documentation> -->
|
|
<!-- </xs:annotation> -->
|
|
<!-- <xs:simpleType> -->
|
|
<!-- <xs:restriction base="xs:integer"> -->
|
|
<!-- <xs:minInclusive value="0" /> -->
|
|
<!-- <xs:maxInclusive value="16" /> -->
|
|
<!-- </xs:restriction> -->
|
|
<!-- </xs:simpleType> -->
|
|
<!-- </xs:element> -->
|
|
|
|
<xs:element name="sequences">
|
|
<xs:annotation>
|
|
<xs:documentation><![CDATA[定义该业务是否有对序列的操作,可选属性]]>
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="sequenceKey" type="xs:string">
|
|
<xs:annotation>
|
|
<xs:documentation><![CDATA[序列名称]]>
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
|
|
<xs:element name="operation">
|
|
<xs:annotation>
|
|
<xs:documentation><![CDATA[定义对序列的操作,0:获取序列值,1:序列值自增]]>
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:integer">
|
|
<xs:pattern value="[0-1]" />
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:element>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
</xs:element>
|
|
|
|
|
|
<xs:element name="expressions">
|
|
<xs:annotation>
|
|
<xs:documentation><![CDATA[定义具体maatredis,key-value规则]]>
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="keyExpression" type="xs:string">
|
|
<xs:annotation>
|
|
<xs:documentation>
|
|
<![CDATA[rediskey规则,以[]包围的代表可变项,
|
|
需要从map中获取的值。以{}包围的是代码中使用的变量,固定值不可随意写,
|
|
编译表名:compile_table_name,分组表名:group_table_name,ip类域配置表名:ip_region_table_name,
|
|
数值类域配置表名:num_region_table_name,字符串类域配置表名:str_region_table_name,
|
|
增强字符串域配置表名:str_str_region_table_name,文件摘要类域配置表名:file_digest_table_name,
|
|
文本相似性域配置表名:file_like_table_name,区域ip配置表名:ip_client_range_table_name,非maat配置表名:un_maat_table_name.
|
|
直接写的代表是固定值,直接拼接即可,
|
|
每个属性间用分号分隔,空格用&nbsp表示]]>
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="valueExpression" type="xs:string">
|
|
<xs:annotation>
|
|
<xs:documentation>
|
|
<![CDATA[redisvalue规则,以[]包围的代表可变项,
|
|
需要从map中获取的值,直接写的代表是固定值,直接拼接即可,
|
|
每个属性间用分号分隔,空格用&nbsp表示]]>
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
|
|
<xs:attribute name="service" type="xs:string" use="required">
|
|
<xs:annotation>
|
|
<xs:documentation><![CDATA[业务类型,多个业务类型用分号分隔]]>
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
|
|
</xs:attribute>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:schema> |