router-model.xml
1.62 KB
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.home.router" enable-merger="true" enable-sax-parser="true"
enable-base-visitor="true" enable-json-parser="true" enable-json-builder="true" enable-native-parser="true" enable-native-builder="true"
enable-xml-parser="false" enable-xml-builder="false" >
<entity name="router-config" root="true">
<attribute name="startTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<attribute name="domain" value-type="String" key="true"/>
<attribute name="backup-server" value-type="String"/>
<attribute name="backup-server-port" value-type="int" primitive="true" />
<attribute name="endTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<entity-ref name="domain" type="map" names="domains" method-find-or-create='true'/>
</entity>
<entity name="default-server">
<attribute name="id" value-type="String" />
<attribute name="port" value-type="int" primitive="true"/>
<attribute name="weight" value-type="double" primitive="true" default-value="1"/>
<attribute name="enable" value-type="boolean" primitive="true"/>
</entity>
<entity name="domain">
<attribute name="id" value-type="String" key="true"/>
<entity-ref name="server" type="list" names="servers" />
<attribute name="sample" value-type="double" primitive="true" default-value="1"/>
</entity>
<entity name="server">
<attribute name="id" value-type="String"/>
<attribute name="port" value-type="int" primitive="true" />
<attribute name="weight" value-type="double" primitive="true" default-value="1"/>
</entity>
</model>