blob: 935d33fdfa0923fe80d3655f8a242af8d9b7362a [file] [log] [blame]
ramangrover29b2201c42013-05-30 15:40:24 -07001<?xml version="1.0" encoding="ISO-8859-1" ?>
Till Westmann5b431ca2015-10-01 19:16:11 -07002
3<!--
4 ! Licensed to the Apache Software Foundation (ASF) under one
5 ! or more contributor license agreements. See the NOTICE file
6 ! distributed with this work for additional information
7 ! regarding copyright ownership. The ASF licenses this file
8 ! to you under the Apache License, Version 2.0 (the
9 ! "License"); you may not use this file except in compliance
10 ! with the License. You may obtain a copy of the License at
11 !
12 ! http://www.apache.org/licenses/LICENSE-2.0
13 !
14 ! Unless required by applicable law or agreed to in writing,
15 ! software distributed under the License is distributed on an
16 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 ! KIND, either express or implied. See the License for the
18 ! specific language governing permissions and limitations
19 ! under the License.
20 !-->
21
ramangrover29b2201c42013-05-30 15:40:24 -070022<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
23 xmlns:cl="cluster" targetNamespace="cluster" elementFormDefault="qualified">
24
25 <!-- definition of simple types -->
ramangrover298679d452013-06-11 07:36:23 -070026 <xs:element name="instance_name" type="xs:string" />
27 <xs:element name="cluster_name" type="xs:string" />
ramangrover29b2201c42013-05-30 15:40:24 -070028 <xs:element name="log_dir" type="xs:string" />
29 <xs:element name="txn_log_dir" type="xs:string" />
30 <xs:element name="id" type="xs:string" />
31 <xs:element name="client_ip" type="xs:string" />
32 <xs:element name="cluster_ip" type="xs:string" />
33 <xs:element name="key" type="xs:string" />
34 <xs:element name="value" type="xs:string" />
35 <xs:element name="dir" type="xs:string" />
36 <xs:element name="NFS" type="xs:boolean" />
37 <xs:element name="store" type="xs:string" />
38 <xs:element name="iodevices" type="xs:string" />
39 <xs:element name="java_home" type="xs:string" />
40 <xs:element name="username" type="xs:string" />
ramangrover29f7f449a2013-06-10 10:50:21 -070041 <xs:element name="web_port" type="xs:string" />
42 <xs:element name="client_port" type="xs:integer" />
43 <xs:element name="cluster_port" type="xs:integer" />
44 <xs:element name="http_port" type="xs:integer" />
ramangrover2993dd8232013-07-03 22:51:25 -070045 <xs:element name="debug_port" type="xs:integer" />
ramangrover29d9702ac2013-09-14 19:14:39 -070046 <xs:element name="metadata_node" type="xs:string" />
Murtadha Hubail209f3902015-11-11 22:11:28 -080047 <xs:element name="enabled" type="xs:boolean" />
48 <xs:element name="replication_port" type="xs:integer" />
49 <xs:element name="replication_factor" type="xs:integer" />
Murtadha Hubail8fc8bf82016-01-23 22:26:59 -080050 <xs:element name="auto_failover" type="xs:boolean" />
Murtadha Hubail209f3902015-11-11 22:11:28 -080051 <xs:element name="replication_time_out" type="xs:integer" />
Murtadha Hubailae2309f2016-02-21 00:56:20 -080052 <xs:element name="heartbeat_period" type="xs:integer" />
53 <xs:element name="max_heartbeat_lapse_periods" type="xs:integer" />
54 <xs:element name="profile_dump_period" type="xs:integer" />
55 <xs:element name="default_max_job_attempts" type="xs:integer" />
56 <xs:element name="job_history_size" type="xs:integer" />
57 <xs:element name="result_time_to_live" type="xs:long" />
58 <xs:element name="result_sweep_threshold" type="xs:long" />
59 <xs:element name="cc_root" type="xs:string" />
ramangrover29b2201c42013-05-30 15:40:24 -070060
61 <!-- definition of complex elements -->
62 <xs:element name="working_dir">
63 <xs:complexType>
64 <xs:sequence>
65 <xs:element ref="cl:dir" />
66 <xs:element ref="cl:NFS" />
67 </xs:sequence>
68 </xs:complexType>
69 </xs:element>
70
71 <xs:element name="master_node">
72 <xs:complexType>
73 <xs:sequence>
74 <xs:element ref="cl:id" />
75 <xs:element ref="cl:client_ip" />
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" />
ramangrover298679d452013-06-11 07:36:23 -070079 <xs:element ref="cl:client_port" />
80 <xs:element ref="cl:cluster_port" />
81 <xs:element ref="cl:http_port" />
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
Murtadha Hubail209f3902015-11-11 22:11:28 -080087 <xs:element name="data_replication">
88 <xs:complexType>
89 <xs:sequence>
90 <xs:element ref="cl:enabled" />
91 <xs:element ref="cl:replication_port" />
92 <xs:element ref="cl:replication_factor" />
Murtadha Hubail8fc8bf82016-01-23 22:26:59 -080093 <xs:element ref="cl:auto_failover" />
Murtadha Hubail209f3902015-11-11 22:11:28 -080094 <xs:element ref="cl:replication_time_out" />
95 </xs:sequence>
96 </xs:complexType>
97 </xs:element>
98
ramangrover29b2201c42013-05-30 15:40:24 -070099 <xs:element name="property">
100 <xs:complexType>
101 <xs:sequence>
102 <xs:element ref="cl:key" />
103 <xs:element ref="cl:value" />
104 </xs:sequence>
105 </xs:complexType>
106 </xs:element>
107
108 <xs:element name="env">
109 <xs:complexType>
110 <xs:sequence>
111 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" />
112 </xs:sequence>
113 </xs:complexType>
114 </xs:element>
115
116 <xs:element name="node">
117 <xs:complexType>
118 <xs:sequence>
119 <xs:element ref="cl:id" />
120 <xs:element ref="cl:cluster_ip" />
121 <xs:element ref="cl:java_home" minOccurs="0" />
122 <xs:element ref="cl:log_dir" minOccurs="0" />
123 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -0700124 <xs:element ref="cl:iodevices" minOccurs="0" />
ramangrover2993dd8232013-07-03 22:51:25 -0700125 <xs:element ref="cl:debug_port" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -0700126 </xs:sequence>
127 </xs:complexType>
128 </xs:element>
129
130 <xs:element name="substitute_nodes">
131 <xs:complexType>
132 <xs:sequence>
133 <xs:element ref="cl:node" maxOccurs="unbounded" />
134 </xs:sequence>
135 </xs:complexType>
136 </xs:element>
137
138 <xs:element name="cluster">
139 <xs:complexType>
140 <xs:sequence>
ramangrover298679d452013-06-11 07:36:23 -0700141 <xs:element ref="cl:instance_name" />
142 <xs:element ref="cl:cluster_name" />
ramangrover29b2201c42013-05-30 15:40:24 -0700143 <xs:element ref="cl:username" />
144 <xs:element ref="cl:env" minOccurs="0" />
145 <xs:element ref="cl:java_home" minOccurs="0" />
146 <xs:element ref="cl:log_dir" minOccurs="0" />
147 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
148 <xs:element ref="cl:store" minOccurs="0" />
149 <xs:element ref="cl:iodevices" minOccurs="0" />
150 <xs:element ref="cl:working_dir" />
ramangrover29d9702ac2013-09-14 19:14:39 -0700151 <xs:element ref="cl:metadata_node" />
Murtadha Hubail209f3902015-11-11 22:11:28 -0800152 <xs:element ref="cl:data_replication" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -0700153 <xs:element ref="cl:master_node" />
154 <xs:element ref="cl:node" maxOccurs="unbounded" />
ramangrover298679d452013-06-11 07:36:23 -0700155 <xs:element ref="cl:substitute_nodes" />
Murtadha Hubailae2309f2016-02-21 00:56:20 -0800156 <xs:element ref="cl:heartbeat_period" minOccurs="0" />
157 <xs:element ref="cl:max_heartbeat_lapse_periods" minOccurs="0" />
158 <xs:element ref="cl:profile_dump_period" minOccurs="0" />
159 <xs:element ref="cl:default_max_job_attempts" minOccurs="0" />
160 <xs:element ref="cl:job_history_size" minOccurs="0" />
161 <xs:element ref="cl:result_time_to_live" minOccurs="0" />
162 <xs:element ref="cl:result_sweep_threshold" minOccurs="0" />
163 <xs:element ref="cl:cc_root" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -0700164 </xs:sequence>
165 </xs:complexType>
166 </xs:element>
167
168</xs:schema>