blob: be7d86368f227a173c96e45d657a304deab89d3f [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" />
ramangrover29f18d4562013-02-15 23:56:00 +000020
Raman Grover27a0c4c2013-04-16 17:29:40 -070021 <!-- definition of complex elements -->
ramangrover29fdfe15f2013-04-29 11:33:44 -070022 <xs:element name="working_dir">
Raman Grover27a0c4c2013-04-16 17:29:40 -070023 <xs:complexType>
24 <xs:sequence>
25 <xs:element ref="cl:dir" />
26 <xs:element ref="cl:NFS" />
27 </xs:sequence>
28 </xs:complexType>
29 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000030
ramangrover29fdfe15f2013-04-29 11:33:44 -070031 <xs:element name="master_node">
Raman Grover27a0c4c2013-04-16 17:29:40 -070032 <xs:complexType>
33 <xs:sequence>
34 <xs:element ref="cl:id" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070035 <xs:element ref="cl:client_ip" />
36 <xs:element ref="cl:cluster_ip" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070037 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070038 <xs:element ref="cl:log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070039 </xs:sequence>
40 </xs:complexType>
41 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000042
Raman Grover27a0c4c2013-04-16 17:29:40 -070043 <xs:element name="property">
44 <xs:complexType>
45 <xs:sequence>
46 <xs:element ref="cl:key" />
47 <xs:element ref="cl:value" />
48 </xs:sequence>
49 </xs:complexType>
50 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000051
Raman Grover27a0c4c2013-04-16 17:29:40 -070052 <xs:element name="env">
53 <xs:complexType>
54 <xs:sequence>
55 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" />
56 </xs:sequence>
57 </xs:complexType>
58 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000059
Raman Grover27a0c4c2013-04-16 17:29:40 -070060 <xs:element name="node">
61 <xs:complexType>
62 <xs:sequence>
63 <xs:element ref="cl:id" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070064 <xs:element ref="cl:cluster_ip" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070065 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070066 <xs:element ref="cl:log_dir" minOccurs="0" />
67 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070068 <xs:element ref="cl:store" minOccurs="0" />
69 <xs:element ref="cl:iodevices" minOccurs="0" />
70 </xs:sequence>
71 </xs:complexType>
72 </xs:element>
ramangrover29b2201c42013-05-30 15:40:24 -070073
74 <xs:element name="substitute_nodes">
ramangrover296d82eda2013-05-29 09:29:59 -070075 <xs:complexType>
76 <xs:sequence>
ramangrover29b2201c42013-05-30 15:40:24 -070077 <xs:element ref="cl:node" maxOccurs="unbounded" />
ramangrover296d82eda2013-05-29 09:29:59 -070078 </xs:sequence>
79 </xs:complexType>
80 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +000081
Raman Grover27a0c4c2013-04-16 17:29:40 -070082 <xs:element name="cluster">
83 <xs:complexType>
84 <xs:sequence>
85 <xs:element ref="cl:name" />
86 <xs:element ref="cl:username" />
87 <xs:element ref="cl:env" minOccurs="0" />
88 <xs:element ref="cl:java_home" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070089 <xs:element ref="cl:log_dir" minOccurs="0" />
90 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070091 <xs:element ref="cl:store" minOccurs="0" />
92 <xs:element ref="cl:iodevices" minOccurs="0" />
ramangrover29fdfe15f2013-04-29 11:33:44 -070093 <xs:element ref="cl:working_dir" />
94 <xs:element ref="cl:master_node" />
Raman Grover27a0c4c2013-04-16 17:29:40 -070095 <xs:element ref="cl:node" maxOccurs="unbounded" />
ramangrover29b2201c42013-05-30 15:40:24 -070096 <xs:element ref="cl:substitute_nodes"/>
Raman Grover27a0c4c2013-04-16 17:29:40 -070097 </xs:sequence>
98 </xs:complexType>
99 </xs:element>
ramangrover29f18d4562013-02-15 23:56:00 +0000100
101</xs:schema>