topology-graph-model.xml 1.91 KB
<?xml version="1.0" encoding="UTF-8"?>
<model model-package="com.dianping.cat.home.dependency.graph"  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="topology-graph"  root="true">
    <attribute name="id" value-type="String" />
    <attribute name="type" value-type="String" />
    <attribute name="status" value-type="int"  primitive="true"/>
    <attribute name="des" value-type="String" />
    <entity-ref name="topology-node" type="map" names="nodes" method-find-or-create='true'/>
    <entity-ref name="topology-edge" type="map" names="edges" method-find-or-create='true'/>
  </entity>
  <entity name="topology-node">
    <attribute name="id" value-type="String" key="true"/>
    <attribute name="type" value-type="String" />
    <attribute name="status" value-type="int"  primitive="true" />
    <attribute name="weight" value-type="int"  primitive="true" />
    <attribute name="des" value-type="String" default-value=""/>
    <attribute name="link" value-type="String" default-value=""/>
  </entity>
  <entity name="topology-edge">
    <attribute name="key" value-type="String" key="true"/>
    <attribute name="type" value-type="String" />
    <attribute name="self" value-type="String" />
    <attribute name="target" value-type="String" />
    <attribute name="opposite" value-type="boolean"  primitive="true" />
    <attribute name="status" value-type="int"  primitive="true" />
    <attribute name="weight" value-type="int"  primitive="true" />
    <attribute name="dashed" value-type="boolean"  primitive="true" default-value="false"/>
    <attribute name="des" value-type="String" default-value=""/>
    <attribute name="link" value-type="String" default-value=""/>
  </entity>
</model>