blob: 38afda35b54b2c4d886dc2435e2b29cd2b7e5268 [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"/>
ramangrover29@gmail.comc0dd0e92013-03-22 07:19:04 +00006<xs:element name="java_heap" type="xs:string"/>
ramangrover29f18d4562013-02-15 23:56:00 +00007<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"/>
ramangrover29@gmail.com3bfd1b52013-03-08 18:56:42 +000018<xs:element name="debug" type="xs:integer"/>
ramangrover29f18d4562013-02-15 23:56:00 +000019
20<!-- definition of complex elements -->
21<xs:element name="workingDir">
22 <xs:complexType>
23 <xs:sequence>
24 <xs:element ref="cl:dir"/>
25 <xs:element ref="cl:NFS"/>
26 </xs:sequence>
27 </xs:complexType>
28</xs:element>
29
30<xs:element name="master-node">
31 <xs:complexType>
32 <xs:sequence>
33 <xs:element ref="cl:id"/>
34 <xs:element ref="cl:ip"/>
35 <xs:element ref="cl:cluster-ip"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000036 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29@gmail.comc0dd0e92013-03-22 07:19:04 +000037 <xs:element ref="cl:java_heap" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000038 <xs:element ref="cl:logdir" minOccurs="0"/>
ramangrover29@gmail.com3bfd1b52013-03-08 18:56:42 +000039 <xs:element ref="cl:debug" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000040 </xs:sequence>
41 </xs:complexType>
42</xs:element>
43
44<xs:element name="property">
45 <xs:complexType>
46 <xs:sequence>
47 <xs:element ref="cl:key"/>
48 <xs:element ref="cl:value"/>
49 </xs:sequence>
50 </xs:complexType>
51</xs:element>
52
53<xs:element name="env">
54 <xs:complexType>
55 <xs:sequence>
56 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded"/>
57 </xs:sequence>
58 </xs:complexType>
59</xs:element>
60
61<xs:element name="node">
62 <xs:complexType>
63 <xs:sequence>
64 <xs:element ref="cl:id"/>
65 <xs:element ref="cl:ip"/>
ramangrover29@gmail.comc0dd0e92013-03-22 07:19:04 +000066 <xs:element ref="cl:java_heap" minOccurs="0"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000067 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000068 <xs:element ref="cl:logdir" minOccurs="0"/>
69 <xs:element ref="cl:store" minOccurs="0"/>
ramangrover29@gmail.com3bfd1b52013-03-08 18:56:42 +000070 <xs:element ref="cl:debug" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000071 </xs:sequence>
72 </xs:complexType>
73</xs:element>
74
75<xs:element name="cluster">
76 <xs:complexType>
77 <xs:sequence>
78 <xs:element ref="cl:name"/>
79 <xs:element ref="cl:username"/>
80 <xs:element ref="cl:env" minOccurs="0"/>
ramangrover29@gmail.comc0dd0e92013-03-22 07:19:04 +000081 <xs:element ref="cl:java_heap" minOccurs="0"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000082 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000083 <xs:element ref="cl:logdir" minOccurs="0"/>
84 <xs:element ref="cl:store" minOccurs="0"/>
85 <xs:element ref="cl:workingDir"/>
86 <xs:element ref="cl:master-node"/>
87 <xs:element ref="cl:node" maxOccurs="unbounded"/>
88 </xs:sequence>
89 </xs:complexType>
90</xs:element>
91
92</xs:schema>