ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 1 | <?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 --> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 6 | <xs:element name="instance_name" type="xs:string" /> |
| 7 | <xs:element name="cluster_name" type="xs:string" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 8 | <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" /> |
ramangrover29 | f7f449a | 2013-06-10 10:50:21 -0700 | [diff] [blame] | 21 | <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" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 25 | <xs:element name="debug_port" type="xs:integer" /> |
ramangrover29 | d9702ac | 2013-09-14 19:14:39 -0700 | [diff] [blame^] | 26 | <xs:element name="metadata_node" type="xs:string" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 27 | |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 28 | |
| 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" /> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 47 | <xs:element ref="cl:client_port" /> |
| 48 | <xs:element ref="cl:cluster_port" /> |
| 49 | <xs:element ref="cl:http_port" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 50 | <xs:element ref="cl:debug_port" minOccurs="0" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 51 | </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" /> |
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 | |
| 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> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 98 | <xs:element ref="cl:instance_name" /> |
| 99 | <xs:element ref="cl:cluster_name" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 100 | <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" /> |
ramangrover29 | d9702ac | 2013-09-14 19:14:39 -0700 | [diff] [blame^] | 108 | <xs:element ref="cl:metadata_node" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 109 | <xs:element ref="cl:master_node" /> |
| 110 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 111 | <xs:element ref="cl:substitute_nodes" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 112 | </xs:sequence> |
| 113 | </xs:complexType> |
| 114 | </xs:element> |
| 115 | |
| 116 | </xs:schema> |