blob: 5192e065a6b80e11a9c892905b4e586d624e69b5 [file] [log] [blame]
ramangrover29b2201c42013-05-30 15:40:24 -07001<?xml version="1.0" encoding="ISO-8859-1" ?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns:cl="cluster" targetNamespace="cluster" elementFormDefault="qualified">
4
5 <!-- definition of simple types -->
ramangrover298679d452013-06-11 07:36:23 -07006 <xs:element name="instance_name" type="xs:string" />
7 <xs:element name="cluster_name" type="xs:string" />
ramangrover29b2201c42013-05-30 15:40:24 -07008 <xs:element name="log_dir" type="xs:string" />
9 <xs:element name="txn_log_dir" type="xs:string" />
10 <xs:element name="id" type="xs:string" />
11 <xs:element name="client_ip" type="xs:string" />
12 <xs:element name="cluster_ip" type="xs:string" />
13 <xs:element name="key" type="xs:string" />
14 <xs:element name="value" type="xs:string" />
15 <xs:element name="dir" type="xs:string" />
16 <xs:element name="NFS" type="xs:boolean" />
17 <xs:element name="store" type="xs:string" />
18 <xs:element name="iodevices" type="xs:string" />
19 <xs:element name="java_home" type="xs:string" />
20 <xs:element name="username" type="xs:string" />
ramangrover29f7f449a2013-06-10 10:50:21 -070021 <xs:element name="web_port" type="xs:string" />
22 <xs:element name="client_port" type="xs:integer" />
23 <xs:element name="cluster_port" type="xs:integer" />
24 <xs:element name="http_port" type="xs:integer" />
ramangrover29b2201c42013-05-30 15:40:24 -070025
26 <!-- definition of complex elements -->
27 <xs:element name="working_dir">
28 <xs:complexType>
29 <xs:sequence>
30 <xs:element ref="cl:dir" />
31 <xs:element ref="cl:NFS" />
32 </xs:sequence>
33 </xs:complexType>
34 </xs:element>
35
36 <xs:element name="master_node">
37 <xs:complexType>
38 <xs:sequence>
39 <xs:element ref="cl:id" />
40 <xs:element ref="cl:client_ip" />
41 <xs:element ref="cl:cluster_ip" />
42 <xs:element ref="cl:java_home" minOccurs="0" />
43 <xs:element ref="cl:log_dir" minOccurs="0" />
ramangrover298679d452013-06-11 07:36:23 -070044 <xs:element ref="cl:client_port" />
45 <xs:element ref="cl:cluster_port" />
46 <xs:element ref="cl:http_port" />
ramangrover29b2201c42013-05-30 15:40:24 -070047 </xs:sequence>
48 </xs:complexType>
49 </xs:element>
50
51 <xs:element name="property">
52 <xs:complexType>
53 <xs:sequence>
54 <xs:element ref="cl:key" />
55 <xs:element ref="cl:value" />
56 </xs:sequence>
57 </xs:complexType>
58 </xs:element>
59
60 <xs:element name="env">
61 <xs:complexType>
62 <xs:sequence>
63 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" />
64 </xs:sequence>
65 </xs:complexType>
66 </xs:element>
67
68 <xs:element name="node">
69 <xs:complexType>
70 <xs:sequence>
71 <xs:element ref="cl:id" />
72 <xs:element ref="cl:cluster_ip" />
73 <xs:element ref="cl:java_home" minOccurs="0" />
74 <xs:element ref="cl:log_dir" minOccurs="0" />
75 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
76 <xs:element ref="cl:store" minOccurs="0" />
77 <xs:element ref="cl:iodevices" minOccurs="0" />
78 </xs:sequence>
79 </xs:complexType>
80 </xs:element>
81
82 <xs:element name="substitute_nodes">
83 <xs:complexType>
84 <xs:sequence>
85 <xs:element ref="cl:node" maxOccurs="unbounded" />
86 </xs:sequence>
87 </xs:complexType>
88 </xs:element>
89
90 <xs:element name="cluster">
91 <xs:complexType>
92 <xs:sequence>
ramangrover298679d452013-06-11 07:36:23 -070093 <xs:element ref="cl:instance_name" />
94 <xs:element ref="cl:cluster_name" />
ramangrover29b2201c42013-05-30 15:40:24 -070095 <xs:element ref="cl:username" />
96 <xs:element ref="cl:env" minOccurs="0" />
97 <xs:element ref="cl:java_home" minOccurs="0" />
98 <xs:element ref="cl:log_dir" minOccurs="0" />
99 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
100 <xs:element ref="cl:store" minOccurs="0" />
101 <xs:element ref="cl:iodevices" minOccurs="0" />
102 <xs:element ref="cl:working_dir" />
103 <xs:element ref="cl:master_node" />
104 <xs:element ref="cl:node" maxOccurs="unbounded" />
ramangrover298679d452013-06-11 07:36:23 -0700105 <xs:element ref="cl:substitute_nodes" />
ramangrover29b2201c42013-05-30 15:40:24 -0700106 </xs:sequence>
107 </xs:complexType>
108 </xs:element>
109
110</xs:schema>