ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
Till Westmann | 5b431ca | 2015-10-01 19:16:11 -0700 | [diff] [blame] | 2 | |
| 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 | |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 22 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 23 | xmlns:cl="cluster" targetNamespace="cluster" elementFormDefault="qualified"> |
| 24 | |
| 25 | <!-- definition of simple types --> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 26 | <xs:element name="instance_name" type="xs:string" /> |
| 27 | <xs:element name="cluster_name" type="xs:string" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 28 | <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" /> |
ramangrover29 | f7f449a | 2013-06-10 10:50:21 -0700 | [diff] [blame] | 41 | <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" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 45 | <xs:element name="debug_port" type="xs:integer" /> |
ramangrover29 | d9702ac | 2013-09-14 19:14:39 -0700 | [diff] [blame] | 46 | <xs:element name="metadata_node" type="xs:string" /> |
Murtadha Hubail | 209f390 | 2015-11-11 22:11:28 -0800 | [diff] [blame] | 47 | <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 Hubail | 8fc8bf8 | 2016-01-23 22:26:59 -0800 | [diff] [blame] | 50 | <xs:element name="auto_failover" type="xs:boolean" /> |
Murtadha Hubail | 209f390 | 2015-11-11 22:11:28 -0800 | [diff] [blame] | 51 | <xs:element name="replication_time_out" type="xs:integer" /> |
Murtadha Hubail | ae2309f | 2016-02-21 00:56:20 -0800 | [diff] [blame] | 52 | <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" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 60 | |
| 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" /> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 79 | <xs:element ref="cl:client_port" /> |
| 80 | <xs:element ref="cl:cluster_port" /> |
| 81 | <xs:element ref="cl:http_port" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 82 | <xs:element ref="cl:debug_port" minOccurs="0" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 83 | </xs:sequence> |
| 84 | </xs:complexType> |
| 85 | </xs:element> |
| 86 | |
Murtadha Hubail | 209f390 | 2015-11-11 22:11:28 -0800 | [diff] [blame] | 87 | <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 Hubail | 8fc8bf8 | 2016-01-23 22:26:59 -0800 | [diff] [blame] | 93 | <xs:element ref="cl:auto_failover" /> |
Murtadha Hubail | 209f390 | 2015-11-11 22:11:28 -0800 | [diff] [blame] | 94 | <xs:element ref="cl:replication_time_out" /> |
| 95 | </xs:sequence> |
| 96 | </xs:complexType> |
| 97 | </xs:element> |
| 98 | |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 99 | <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" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 124 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 125 | <xs:element ref="cl:debug_port" minOccurs="0" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 126 | </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> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 141 | <xs:element ref="cl:instance_name" /> |
| 142 | <xs:element ref="cl:cluster_name" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 143 | <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" /> |
ramangrover29 | d9702ac | 2013-09-14 19:14:39 -0700 | [diff] [blame] | 151 | <xs:element ref="cl:metadata_node" /> |
Murtadha Hubail | 209f390 | 2015-11-11 22:11:28 -0800 | [diff] [blame] | 152 | <xs:element ref="cl:data_replication" minOccurs="0" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 153 | <xs:element ref="cl:master_node" /> |
| 154 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 155 | <xs:element ref="cl:substitute_nodes" /> |
Murtadha Hubail | ae2309f | 2016-02-21 00:56:20 -0800 | [diff] [blame] | 156 | <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" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 164 | </xs:sequence> |
| 165 | </xs:complexType> |
| 166 | </xs:element> |
| 167 | |
| 168 | </xs:schema> |