blob: d9b62c263f01b37a7acc3e2da121ed10070a01b2 [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" />
ramangrover2993dd8232013-07-03 22:51:25 -070047
ramangrover29b2201c42013-05-30 15:40:24 -070048
49 <!-- definition of complex elements -->
50 <xs:element name="working_dir">
51 <xs:complexType>
52 <xs:sequence>
53 <xs:element ref="cl:dir" />
54 <xs:element ref="cl:NFS" />
55 </xs:sequence>
56 </xs:complexType>
57 </xs:element>
58
59 <xs:element name="master_node">
60 <xs:complexType>
61 <xs:sequence>
62 <xs:element ref="cl:id" />
63 <xs:element ref="cl:client_ip" />
64 <xs:element ref="cl:cluster_ip" />
65 <xs:element ref="cl:java_home" minOccurs="0" />
66 <xs:element ref="cl:log_dir" minOccurs="0" />
ramangrover298679d452013-06-11 07:36:23 -070067 <xs:element ref="cl:client_port" />
68 <xs:element ref="cl:cluster_port" />
69 <xs:element ref="cl:http_port" />
ramangrover2993dd8232013-07-03 22:51:25 -070070 <xs:element ref="cl:debug_port" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -070071 </xs:sequence>
72 </xs:complexType>
73 </xs:element>
74
75 <xs:element name="property">
76 <xs:complexType>
77 <xs:sequence>
78 <xs:element ref="cl:key" />
79 <xs:element ref="cl:value" />
80 </xs:sequence>
81 </xs:complexType>
82 </xs:element>
83
84 <xs:element name="env">
85 <xs:complexType>
86 <xs:sequence>
87 <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" />
88 </xs:sequence>
89 </xs:complexType>
90 </xs:element>
91
92 <xs:element name="node">
93 <xs:complexType>
94 <xs:sequence>
95 <xs:element ref="cl:id" />
96 <xs:element ref="cl:cluster_ip" />
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" />
ramangrover2993dd8232013-07-03 22:51:25 -0700102 <xs:element ref="cl:debug_port" minOccurs="0" />
ramangrover29b2201c42013-05-30 15:40:24 -0700103 </xs:sequence>
104 </xs:complexType>
105 </xs:element>
106
107 <xs:element name="substitute_nodes">
108 <xs:complexType>
109 <xs:sequence>
110 <xs:element ref="cl:node" maxOccurs="unbounded" />
111 </xs:sequence>
112 </xs:complexType>
113 </xs:element>
114
115 <xs:element name="cluster">
116 <xs:complexType>
117 <xs:sequence>
ramangrover298679d452013-06-11 07:36:23 -0700118 <xs:element ref="cl:instance_name" />
119 <xs:element ref="cl:cluster_name" />
ramangrover29b2201c42013-05-30 15:40:24 -0700120 <xs:element ref="cl:username" />
121 <xs:element ref="cl:env" minOccurs="0" />
122 <xs:element ref="cl:java_home" minOccurs="0" />
123 <xs:element ref="cl:log_dir" minOccurs="0" />
124 <xs:element ref="cl:txn_log_dir" minOccurs="0" />
125 <xs:element ref="cl:store" minOccurs="0" />
126 <xs:element ref="cl:iodevices" minOccurs="0" />
127 <xs:element ref="cl:working_dir" />
ramangrover29d9702ac2013-09-14 19:14:39 -0700128 <xs:element ref="cl:metadata_node" />
ramangrover29b2201c42013-05-30 15:40:24 -0700129 <xs:element ref="cl:master_node" />
130 <xs:element ref="cl:node" maxOccurs="unbounded" />
ramangrover298679d452013-06-11 07:36:23 -0700131 <xs:element ref="cl:substitute_nodes" />
ramangrover29b2201c42013-05-30 15:40:24 -0700132 </xs:sequence>
133 </xs:complexType>
134 </xs:element>
135
136</xs:schema>