blob: c0cd3094c61d80f467d5ee6c0dac92507312ba39 [file] [log] [blame]
ramangrover29f18d4562013-02-15 23:56:00 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
Raman Grover27a0c4c2013-04-16 17:29:40 -07002<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns:cl="cluster" targetNamespace="cluster" elementFormDefault="qualified">
ramangrover29f18d4562013-02-15 23:56:00 +00004
Raman Grover27a0c4c2013-04-16 17:29:40 -07005 <!-- definition of simple types -->
6 <xs:element name="name" type="xs:string" />
ramangrover29fdfe15f2013-04-29 11:33:44 -07007 <xs:element name="log_dir" type="xs:string" />
8 <xs:element name="txn_log_dir" type="xs:string" />
Raman Grover27a0c4c2013-04-16 17:29:40 -07009 <xs:element name="id" type="xs:string" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070010 <xs:element name="client_ip" type="xs:string" />
11 <xs:element name="cluster_ip" type="xs:string" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070012 <xs:element name="key" type="xs:string" />
13 <xs:element name="value" type="xs:string" />
14 <xs:element name="dir" type="xs:string" />
15 <xs:element name="NFS" type="xs:boolean" />
16 <xs:element name="store" type="xs:string" />
17 <xs:element name="iodevices" type="xs:string" />
18 <xs:element name="java_home" type="xs:string" />
19 <xs:element name="username" type="xs:string" />
ramangrover2979fba682013-06-02 10:03:15 -070020 <xs:element name="web_port" type="xs:string" />
21 <xs:element name="client_port" type="xs:string" />
22 <xs:element name="cluster_port" type="xs:string" />
23 <xs:element name="http_port" type="xs:string" />
ramangrover29f18d4562013-02-15 23:56:00 +000024
Raman Grover27a0c4c2013-04-16 17:29:40 -070025 <!-- definition of complex elements -->
ramangrover29fdfe15f2013-04-29 11:33:44 -070026 <xs:element name="working_dir">
Raman Grover27a0c4c2013-04-16 17:29:40 -070027 <xs:complexType>
28 <xs:sequence>
29 <xs:element ref="cl:dir" />
30 <xs:element ref="cl:NFS" />
31 </xs:sequence>
32 </xs:complexType>
33 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000034
ramangrover29fdfe15f2013-04-29 11:33:44 -070035 <xs:element name="master_node">
Raman Grover27a0c4c2013-04-16 17:29:40 -070036 <xs:complexType>
37 <xs:sequence>
38 <xs:element ref="cl:id" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070039 <xs:element ref="cl:client_ip" />
40 <xs:element ref="cl:cluster_ip" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070041 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070042 <xs:element ref="cl:log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070043 </xs:sequence>
44 </xs:complexType>
45 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000046
Raman Grover27a0c4c2013-04-16 17:29:40 -070047 <xs:element name="property">
48 <xs:complexType>
49 <xs:sequence>
50 <xs:element ref="cl:key" />
51 <xs:element ref="cl:value" />
52 </xs:sequence>
53 </xs:complexType>
54 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000055
ramangrover2979fba682013-06-02 10:03:15 -070056 <xs:element name="ports">
57 <xs:complexType>
58 <xs:sequence>
59 <xs:element ref="cl:web_port" />
60 <xs:element ref="cl:client_port" />
61 <xs:element ref="cl:cluster_port" />
62 <xs:element ref="cl:http_port" />
63 </xs:sequence>
64 </xs:complexType>
65 </xs:element>
66
Raman Grover27a0c4c2013-04-16 17:29:40 -070067 <xs:element name="env">
68 <xs:complexType>
69 <xs:sequence>
70 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" />
71 </xs:sequence>
72 </xs:complexType>
73 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000074
Raman Grover27a0c4c2013-04-16 17:29:40 -070075 <xs:element name="node">
76 <xs:complexType>
77 <xs:sequence>
78 <xs:element ref="cl:id" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070079 <xs:element ref="cl:cluster_ip" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070080 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070081 <xs:element ref="cl:log_dir" minOccurs="0" />
82 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070083 <xs:element ref="cl:store" minOccurs="0" />
84 <xs:element ref="cl:iodevices" minOccurs="0" />
85 </xs:sequence>
86 </xs:complexType>
87 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000088
Raman Grover27a0c4c2013-04-16 17:29:40 -070089 <xs:element name="cluster">
90 <xs:complexType>
91 <xs:sequence>
92 <xs:element ref="cl:name" />
93 <xs:element ref="cl:username" />
94 <xs:element ref="cl:env" minOccurs="0" />
95 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070096 <xs:element ref="cl:log_dir" minOccurs="0" />
97 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070098 <xs:element ref="cl:store" minOccurs="0" />
99 <xs:element ref="cl:iodevices" minOccurs="0" />
ramangrover2979fba682013-06-02 10:03:15 -0700100 <xs:element ref="cl:ports" />
ramangrover29fdfe15f2013-04-29 11:33:44 -0700101 <xs:element ref="cl:working_dir" />
102 <xs:element ref="cl:master_node" />
Raman Grover27a0c4c2013-04-16 17:29:40 -0700103 <xs:element ref="cl:node" maxOccurs="unbounded" />
104 </xs:sequence>
105 </xs:complexType>
106 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +0000107
108</xs:schema>