blob: 8c317d8ff6808e76dd3e6e6591034e574349835d [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" />
ramangrover2993dd8232013-07-03 22:51:25 -070025 <xs:element name="debug_port" type="xs:integer" />
ramangrover29d9702ac2013-09-14 19:14:39 -070026 <xs:element name="metadata_node" type="xs:string" />
ramangrover2993dd8232013-07-03 22:51:25 -070027
ramangrover29b2201c42013-05-30 15:40:24 -070028
29 <!-- definition of complex elements -->
30 <xs:element name="working_dir">
31 <xs:complexType>
32 <xs:sequence>
33 <xs:element ref="cl:dir" />
34 <xs:element ref="cl:NFS" />
35 </xs:sequence>
36 </xs:complexType>
37 </xs:element>
38
39 <xs:element name="master_node">
40 <xs:complexType>
41 <xs:sequence>
42 <xs:element ref="cl:id" />
43 <xs:element ref="cl:client_ip" />
44 <xs:element ref="cl:cluster_ip" />
45 <xs:element ref="cl:java_home" minOccurs="0" />
46 <xs:element ref="cl:log_dir" minOccurs="0" />
ramangrover298679d452013-06-11 07:36:23 -070047 <xs:element ref="cl:client_port" />
48 <xs:element ref="cl:cluster_port" />
49 <xs:element ref="cl:http_port" />
ramangrover2993dd8232013-07-03 22:51:25 -070050 <xs:element ref="cl:debug_port" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -070051 </xs:sequence>
52 </xs:complexType>
53 </xs:element>
54
55 <xs:element name="property">
56 <xs:complexType>
57 <xs:sequence>
58 <xs:element ref="cl:key" />
59 <xs:element ref="cl:value" />
60 </xs:sequence>
61 </xs:complexType>
62 </xs:element>
63
64 <xs:element name="env">
65 <xs:complexType>
66 <xs:sequence>
67 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" />
68 </xs:sequence>
69 </xs:complexType>
70 </xs:element>
71
72 <xs:element name="node">
73 <xs:complexType>
74 <xs:sequence>
75 <xs:element ref="cl:id" />
76 <xs:element ref="cl:cluster_ip" />
77 <xs:element ref="cl:java_home" minOccurs="0" />
78 <xs:element ref="cl:log_dir" minOccurs="0" />
79 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
80 <xs:element ref="cl:store" minOccurs="0" />
81 <xs:element ref="cl:iodevices" minOccurs="0" />
ramangrover2993dd8232013-07-03 22:51:25 -070082 <xs:element ref="cl:debug_port" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -070083 </xs:sequence>
84 </xs:complexType>
85 </xs:element>
86
87 <xs:element name="substitute_nodes">
88 <xs:complexType>
89 <xs:sequence>
90 <xs:element ref="cl:node" maxOccurs="unbounded" />
91 </xs:sequence>
92 </xs:complexType>
93 </xs:element>
94
95 <xs:element name="cluster">
96 <xs:complexType>
97 <xs:sequence>
ramangrover298679d452013-06-11 07:36:23 -070098 <xs:element ref="cl:instance_name" />
99 <xs:element ref="cl:cluster_name" />
ramangrover29b2201c42013-05-30 15:40:24 -0700100 <xs:element ref="cl:username" />
101 <xs:element ref="cl:env" minOccurs="0" />
102 <xs:element ref="cl:java_home" minOccurs="0" />
103 <xs:element ref="cl:log_dir" minOccurs="0" />
104 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
105 <xs:element ref="cl:store" minOccurs="0" />
106 <xs:element ref="cl:iodevices" minOccurs="0" />
107 <xs:element ref="cl:working_dir" />
ramangrover29d9702ac2013-09-14 19:14:39 -0700108 <xs:element ref="cl:metadata_node" />
ramangrover29b2201c42013-05-30 15:40:24 -0700109 <xs:element ref="cl:master_node" />
110 <xs:element ref="cl:node" maxOccurs="unbounded" />
ramangrover298679d452013-06-11 07:36:23 -0700111 <xs:element ref="cl:substitute_nodes" />
ramangrover29b2201c42013-05-30 15:40:24 -0700112 </xs:sequence>
113 </xs:complexType>
114 </xs:element>
115
116</xs:schema>