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" /> |
| 26 | |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 27 | |
| 28 | <!-- definition of complex elements --> |
| 29 | <xs:element name="working_dir"> |
| 30 | <xs:complexType> |
| 31 | <xs:sequence> |
| 32 | <xs:element ref="cl:dir" /> |
| 33 | <xs:element ref="cl:NFS" /> |
| 34 | </xs:sequence> |
| 35 | </xs:complexType> |
| 36 | </xs:element> |
| 37 | |
| 38 | <xs:element name="master_node"> |
| 39 | <xs:complexType> |
| 40 | <xs:sequence> |
| 41 | <xs:element ref="cl:id" /> |
| 42 | <xs:element ref="cl:client_ip" /> |
| 43 | <xs:element ref="cl:cluster_ip" /> |
| 44 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 45 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 46 | <xs:element ref="cl:client_port" /> |
| 47 | <xs:element ref="cl:cluster_port" /> |
| 48 | <xs:element ref="cl:http_port" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 49 | <xs:element ref="cl:debug_port" minOccurs="0" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 50 | </xs:sequence> |
| 51 | </xs:complexType> |
| 52 | </xs:element> |
| 53 | |
| 54 | <xs:element name="property"> |
| 55 | <xs:complexType> |
| 56 | <xs:sequence> |
| 57 | <xs:element ref="cl:key" /> |
| 58 | <xs:element ref="cl:value" /> |
| 59 | </xs:sequence> |
| 60 | </xs:complexType> |
| 61 | </xs:element> |
| 62 | |
| 63 | <xs:element name="env"> |
| 64 | <xs:complexType> |
| 65 | <xs:sequence> |
| 66 | <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" /> |
| 67 | </xs:sequence> |
| 68 | </xs:complexType> |
| 69 | </xs:element> |
| 70 | |
| 71 | <xs:element name="node"> |
| 72 | <xs:complexType> |
| 73 | <xs:sequence> |
| 74 | <xs:element ref="cl:id" /> |
| 75 | <xs:element ref="cl:cluster_ip" /> |
| 76 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 77 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 78 | <xs:element ref="cl:txn_log_dir" minOccurs="0" /> |
| 79 | <xs:element ref="cl:store" minOccurs="0" /> |
| 80 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
ramangrover29 | 93dd823 | 2013-07-03 22:51:25 -0700 | [diff] [blame] | 81 | <xs:element ref="cl:debug_port" minOccurs="0" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 82 | </xs:sequence> |
| 83 | </xs:complexType> |
| 84 | </xs:element> |
| 85 | |
| 86 | <xs:element name="substitute_nodes"> |
| 87 | <xs:complexType> |
| 88 | <xs:sequence> |
| 89 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
| 90 | </xs:sequence> |
| 91 | </xs:complexType> |
| 92 | </xs:element> |
| 93 | |
| 94 | <xs:element name="cluster"> |
| 95 | <xs:complexType> |
| 96 | <xs:sequence> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 97 | <xs:element ref="cl:instance_name" /> |
| 98 | <xs:element ref="cl:cluster_name" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 99 | <xs:element ref="cl:username" /> |
| 100 | <xs:element ref="cl:env" minOccurs="0" /> |
| 101 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 102 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 103 | <xs:element ref="cl:txn_log_dir" minOccurs="0" /> |
| 104 | <xs:element ref="cl:store" minOccurs="0" /> |
| 105 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
| 106 | <xs:element ref="cl:working_dir" /> |
| 107 | <xs:element ref="cl:master_node" /> |
| 108 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
ramangrover29 | 8679d45 | 2013-06-11 07:36:23 -0700 | [diff] [blame] | 109 | <xs:element ref="cl:substitute_nodes" /> |
ramangrover29 | b2201c4 | 2013-05-30 15:40:24 -0700 | [diff] [blame] | 110 | </xs:sequence> |
| 111 | </xs:complexType> |
| 112 | </xs:element> |
| 113 | |
| 114 | </xs:schema> |