blob: 0e1adce2c1a2df1dfa58bcfebe315893495ee20d [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.com309034e2013-04-01 00:11:35 +00006<xs:element name="java_opts" 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"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +00009<xs:element name="client-ip" type="xs:string"/>
ramangrover29f18d4562013-02-15 23:56:00 +000010<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"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000016<xs:element name="iodevices" type="xs:string"/>
ramangrover29f18d4562013-02-15 23:56:00 +000017<xs:element name="java_home" type="xs:string"/>
18<xs:element name="username" type="xs:string"/>
ramangrover29@gmail.com3bfd1b52013-03-08 18:56:42 +000019<xs:element name="debug" type="xs:integer"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000020<xs:element name="debugEnabled" type="xs:boolean"/>
ramangrover29f18d4562013-02-15 23:56:00 +000021
22<!-- definition of complex elements -->
23<xs:element name="workingDir">
24 <xs:complexType>
25 <xs:sequence>
26 <xs:element ref="cl:dir"/>
27 <xs:element ref="cl:NFS"/>
28 </xs:sequence>
29 </xs:complexType>
30</xs:element>
31
32<xs:element name="master-node">
33 <xs:complexType>
34 <xs:sequence>
35 <xs:element ref="cl:id"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000036 <xs:element ref="cl:client-ip"/>
ramangrover29f18d4562013-02-15 23:56:00 +000037 <xs:element ref="cl:cluster-ip"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000038 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000039 <xs:element ref="cl:java_opts" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000040 <xs:element ref="cl:logdir" minOccurs="0"/>
ramangrover29@gmail.com3bfd1b52013-03-08 18:56:42 +000041 <xs:element ref="cl:debug" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000042 </xs:sequence>
43 </xs:complexType>
44</xs:element>
45
46<xs:element name="property">
47 <xs:complexType>
48 <xs:sequence>
49 <xs:element ref="cl:key"/>
50 <xs:element ref="cl:value"/>
51 </xs:sequence>
52 </xs:complexType>
53</xs:element>
54
55<xs:element name="env">
56 <xs:complexType>
57 <xs:sequence>
58 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded"/>
59 </xs:sequence>
60 </xs:complexType>
61</xs:element>
62
63<xs:element name="node">
64 <xs:complexType>
65 <xs:sequence>
66 <xs:element ref="cl:id"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000067 <xs:element ref="cl:cluster-ip"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000068 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000069 <xs:element ref="cl:java_opts" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000070 <xs:element ref="cl:logdir" minOccurs="0"/>
71 <xs:element ref="cl:store" minOccurs="0"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000072 <xs:element ref="cl:iodevices" minOccurs="0"/>
ramangrover29@gmail.com3bfd1b52013-03-08 18:56:42 +000073 <xs:element ref="cl:debug" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000074 </xs:sequence>
75 </xs:complexType>
76</xs:element>
77
78<xs:element name="cluster">
79 <xs:complexType>
80 <xs:sequence>
81 <xs:element ref="cl:name"/>
82 <xs:element ref="cl:username"/>
83 <xs:element ref="cl:env" minOccurs="0"/>
ramangrover29ab6d3492013-02-21 22:23:03 +000084 <xs:element ref="cl:java_home" minOccurs="0"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000085 <xs:element ref="cl:java_opts" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000086 <xs:element ref="cl:logdir" minOccurs="0"/>
87 <xs:element ref="cl:store" minOccurs="0"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000088 <xs:element ref="cl:iodevices" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000089 <xs:element ref="cl:workingDir"/>
ramangrover29@gmail.com309034e2013-04-01 00:11:35 +000090 <xs:element ref="cl:debugEnabled" minOccurs="0"/>
91 <xs:element ref="cl:debug" minOccurs="0"/>
ramangrover29f18d4562013-02-15 23:56:00 +000092 <xs:element ref="cl:master-node"/>
93 <xs:element ref="cl:node" maxOccurs="unbounded"/>
94 </xs:sequence>
95 </xs:complexType>
96</xs:element>
97
98</xs:schema>