blob: edfe22029fd48cf066a80e71668396435d427125 [file] [log] [blame]
ramangrover29f18d4562013-02-15 23:56:00 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cl="cluster" targetNamespace="cluster" elementFormDefault="qualified">
3
4<!-- definition of simple types -->
5<xs:element name="name" type="xs:string"/>
6<xs:element name="ram" type="xs:string"/>
7<xs:element name="logdir" type="xs:string"/>
8<xs:element name="id" type="xs:string"/>
9<xs:element name="ip" type="xs:string"/>
10<xs:element name="cluster-ip" type="xs:string"/>
11<xs:element name="key" type="xs:string"/>
12<xs:element name="value" type="xs:string"/>
13<xs:element name="dir" type="xs:string"/>
14<xs:element name="NFS" type="xs:boolean"/>
15<xs:element name="store" type="xs:string"/>
16<xs:element name="java_home" type="xs:string"/>
17<xs:element name="username" type="xs:string"/>
18
19<!-- definition of complex elements -->
20<xs:element name="workingDir">
21 <xs:complexType>
22 <xs:sequence>
23 <xs:element ref="cl:dir"/>
24 <xs:element ref="cl:NFS"/>
25 </xs:sequence>
26 </xs:complexType>
27</xs:element>
28
29<xs:element name="master-node">
30 <xs:complexType>
31 <xs:sequence>
32 <xs:element ref="cl:id"/>
33 <xs:element ref="cl:ip"/>
34 <xs:element ref="cl:cluster-ip"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000035 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000036 <xs:element ref="cl:ram" minOccurs="0"/>
37 <xs:element ref="cl:logdir" minOccurs="0"/>
38 </xs:sequence>
39 </xs:complexType>
40</xs:element>
41
42<xs:element name="property">
43 <xs:complexType>
44 <xs:sequence>
45 <xs:element ref="cl:key"/>
46 <xs:element ref="cl:value"/>
47 </xs:sequence>
48 </xs:complexType>
49</xs:element>
50
51<xs:element name="env">
52 <xs:complexType>
53 <xs:sequence>
54 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded"/>
55 </xs:sequence>
56 </xs:complexType>
57</xs:element>
58
59<xs:element name="node">
60 <xs:complexType>
61 <xs:sequence>
62 <xs:element ref="cl:id"/>
63 <xs:element ref="cl:ip"/>
64 <xs:element ref="cl:ram" minOccurs="0"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000065 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000066 <xs:element ref="cl:logdir" minOccurs="0"/>
67 <xs:element ref="cl:store" minOccurs="0"/>
68 </xs:sequence>
69 </xs:complexType>
70</xs:element>
71
72<xs:element name="cluster">
73 <xs:complexType>
74 <xs:sequence>
75 <xs:element ref="cl:name"/>
76 <xs:element ref="cl:username"/>
77 <xs:element ref="cl:env" minOccurs="0"/>
78 <xs:element ref="cl:ram" minOccurs="0"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000079 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000080 <xs:element ref="cl:logdir" minOccurs="0"/>
81 <xs:element ref="cl:store" minOccurs="0"/>
82 <xs:element ref="cl:workingDir"/>
83 <xs:element ref="cl:master-node"/>
84 <xs:element ref="cl:node" maxOccurs="unbounded"/>
85 </xs:sequence>
86 </xs:complexType>
87</xs:element>
88
89</xs:schema>