blob: f0d5bd9a36ca498a99c5a4a40efae530c6623f65 [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" />
ramangrover29fa0a5782013-06-05 03:17:57 -070021 <xs:element name="client_port" type="xs:integer" />
22 <xs:element name="cluster_port" type="xs:integer" />
23 <xs:element name="http_port" type="xs:integer" />
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" />
ramangrover29fa0a5782013-06-05 03:17:57 -070043 <xs:element ref="cl:client_port" />
44 <xs:element ref="cl:cluster_port" />
45 <xs:element ref="cl:http_port" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070046 </xs:sequence>
47 </xs:complexType>
48 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000049
Raman Grover27a0c4c2013-04-16 17:29:40 -070050 <xs:element name="property">
51 <xs:complexType>
52 <xs:sequence>
53 <xs:element ref="cl:key" />
54 <xs:element ref="cl:value" />
55 </xs:sequence>
56 </xs:complexType>
57 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000058
Raman Grover27a0c4c2013-04-16 17:29:40 -070059 <xs:element name="env">
60 <xs:complexType>
61 <xs:sequence>
62 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" />
63 </xs:sequence>
64 </xs:complexType>
65 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000066
Raman Grover27a0c4c2013-04-16 17:29:40 -070067 <xs:element name="node">
68 <xs:complexType>
69 <xs:sequence>
70 <xs:element ref="cl:id" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070071 <xs:element ref="cl:cluster_ip" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070072 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070073 <xs:element ref="cl:log_dir" minOccurs="0" />
74 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070075 <xs:element ref="cl:store" minOccurs="0" />
76 <xs:element ref="cl:iodevices" minOccurs="0" />
77 </xs:sequence>
78 </xs:complexType>
79 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000080
Raman Grover27a0c4c2013-04-16 17:29:40 -070081 <xs:element name="cluster">
82 <xs:complexType>
83 <xs:sequence>
84 <xs:element ref="cl:name" />
85 <xs:element ref="cl:username" />
86 <xs:element ref="cl:env" minOccurs="0" />
87 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070088 <xs:element ref="cl:log_dir" minOccurs="0" />
89 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070090 <xs:element ref="cl:store" minOccurs="0" />
91 <xs:element ref="cl:iodevices" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070092 <xs:element ref="cl:working_dir" />
93 <xs:element ref="cl:master_node" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070094 <xs:element ref="cl:node" maxOccurs="unbounded" />
95 </xs:sequence>
96 </xs:complexType>
97 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000098
99</xs:schema>