ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 3 | xmlns:cl="cluster" targetNamespace="cluster" elementFormDefault="qualified"> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 4 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 5 | <!-- definition of simple types --> |
| 6 | <xs:element name="name" type="xs:string" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 7 | <xs:element name="log_dir" type="xs:string" /> |
| 8 | <xs:element name="txn_log_dir" type="xs:string" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 9 | <xs:element name="id" type="xs:string" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 10 | <xs:element name="client_ip" type="xs:string" /> |
| 11 | <xs:element name="cluster_ip" type="xs:string" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 12 | <xs:element name="key" type="xs:string" /> |
| 13 | <xs:element name="value" type="xs:string" /> |
| 14 | <xs:element name="dir" type="xs:string" /> |
| 15 | <xs:element name="NFS" type="xs:boolean" /> |
| 16 | <xs:element name="store" type="xs:string" /> |
| 17 | <xs:element name="iodevices" type="xs:string" /> |
| 18 | <xs:element name="java_home" type="xs:string" /> |
| 19 | <xs:element name="username" type="xs:string" /> |
ramangrover29 | 79fba68 | 2013-06-02 10:03:15 -0700 | [diff] [blame] | 20 | <xs:element name="web_port" type="xs:string" /> |
| 21 | <xs:element name="client_port" type="xs:string" /> |
| 22 | <xs:element name="cluster_port" type="xs:string" /> |
| 23 | <xs:element name="http_port" type="xs:string" /> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 24 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 25 | <!-- definition of complex elements --> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 26 | <xs:element name="working_dir"> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 27 | <xs:complexType> |
| 28 | <xs:sequence> |
| 29 | <xs:element ref="cl:dir" /> |
| 30 | <xs:element ref="cl:NFS" /> |
| 31 | </xs:sequence> |
| 32 | </xs:complexType> |
| 33 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 34 | |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 35 | <xs:element name="master_node"> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 36 | <xs:complexType> |
| 37 | <xs:sequence> |
| 38 | <xs:element ref="cl:id" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 39 | <xs:element ref="cl:client_ip" /> |
| 40 | <xs:element ref="cl:cluster_ip" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 41 | <xs:element ref="cl:java_home" minOccurs="0" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 42 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 43 | </xs:sequence> |
| 44 | </xs:complexType> |
| 45 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 46 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 47 | <xs:element name="property"> |
| 48 | <xs:complexType> |
| 49 | <xs:sequence> |
| 50 | <xs:element ref="cl:key" /> |
| 51 | <xs:element ref="cl:value" /> |
| 52 | </xs:sequence> |
| 53 | </xs:complexType> |
| 54 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 55 | |
ramangrover29 | 79fba68 | 2013-06-02 10:03:15 -0700 | [diff] [blame] | 56 | <xs:element name="ports"> |
| 57 | <xs:complexType> |
| 58 | <xs:sequence> |
| 59 | <xs:element ref="cl:web_port" /> |
| 60 | <xs:element ref="cl:client_port" /> |
| 61 | <xs:element ref="cl:cluster_port" /> |
| 62 | <xs:element ref="cl:http_port" /> |
| 63 | </xs:sequence> |
| 64 | </xs:complexType> |
| 65 | </xs:element> |
| 66 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 67 | <xs:element name="env"> |
| 68 | <xs:complexType> |
| 69 | <xs:sequence> |
| 70 | <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" /> |
| 71 | </xs:sequence> |
| 72 | </xs:complexType> |
| 73 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 74 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 75 | <xs:element name="node"> |
| 76 | <xs:complexType> |
| 77 | <xs:sequence> |
| 78 | <xs:element ref="cl:id" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 79 | <xs:element ref="cl:cluster_ip" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 80 | <xs:element ref="cl:java_home" minOccurs="0" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 81 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 82 | <xs:element ref="cl:txn_log_dir" minOccurs="0" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 83 | <xs:element ref="cl:store" minOccurs="0" /> |
| 84 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
| 85 | </xs:sequence> |
| 86 | </xs:complexType> |
| 87 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 88 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 89 | <xs:element name="cluster"> |
| 90 | <xs:complexType> |
| 91 | <xs:sequence> |
| 92 | <xs:element ref="cl:name" /> |
| 93 | <xs:element ref="cl:username" /> |
| 94 | <xs:element ref="cl:env" minOccurs="0" /> |
| 95 | <xs:element ref="cl:java_home" minOccurs="0" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 96 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 97 | <xs:element ref="cl:txn_log_dir" minOccurs="0" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 98 | <xs:element ref="cl:store" minOccurs="0" /> |
| 99 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
ramangrover29 | 79fba68 | 2013-06-02 10:03:15 -0700 | [diff] [blame] | 100 | <xs:element ref="cl:ports" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 101 | <xs:element ref="cl:working_dir" /> |
| 102 | <xs:element ref="cl:master_node" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 103 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
| 104 | </xs:sequence> |
| 105 | </xs:complexType> |
| 106 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 107 | |
| 108 | </xs:schema> |