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 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 20 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 21 | <!-- definition of complex elements --> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 22 | <xs:element name="working_dir"> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 23 | <xs:complexType> |
| 24 | <xs:sequence> |
| 25 | <xs:element ref="cl:dir" /> |
| 26 | <xs:element ref="cl:NFS" /> |
| 27 | </xs:sequence> |
| 28 | </xs:complexType> |
| 29 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 30 | |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 31 | <xs:element name="master_node"> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 32 | <xs:complexType> |
| 33 | <xs:sequence> |
| 34 | <xs:element ref="cl:id" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 35 | <xs:element ref="cl:client_ip" /> |
| 36 | <xs:element ref="cl:cluster_ip" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 37 | <xs:element ref="cl:java_home" minOccurs="0" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 38 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 39 | </xs:sequence> |
| 40 | </xs:complexType> |
| 41 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 42 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 43 | <xs:element name="property"> |
| 44 | <xs:complexType> |
| 45 | <xs:sequence> |
| 46 | <xs:element ref="cl:key" /> |
| 47 | <xs:element ref="cl:value" /> |
| 48 | </xs:sequence> |
| 49 | </xs:complexType> |
| 50 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 51 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 52 | <xs:element name="env"> |
| 53 | <xs:complexType> |
| 54 | <xs:sequence> |
| 55 | <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" /> |
| 56 | </xs:sequence> |
| 57 | </xs:complexType> |
| 58 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 59 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 60 | <xs:element name="node"> |
| 61 | <xs:complexType> |
| 62 | <xs:sequence> |
| 63 | <xs:element ref="cl:id" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 64 | <xs:element ref="cl:cluster_ip" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 65 | <xs:element ref="cl:java_home" minOccurs="0" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 66 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 67 | <xs:element ref="cl:txn_log_dir" minOccurs="0" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 68 | <xs:element ref="cl:store" minOccurs="0" /> |
| 69 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
| 70 | </xs:sequence> |
| 71 | </xs:complexType> |
| 72 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 73 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 74 | <xs:element name="cluster"> |
| 75 | <xs:complexType> |
| 76 | <xs:sequence> |
| 77 | <xs:element ref="cl:name" /> |
| 78 | <xs:element ref="cl:username" /> |
| 79 | <xs:element ref="cl:env" minOccurs="0" /> |
| 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" /> |
ramangrover29 | fdfe15f | 2013-04-29 11:33:44 -0700 | [diff] [blame] | 85 | <xs:element ref="cl:working_dir" /> |
| 86 | <xs:element ref="cl:master_node" /> |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame] | 87 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
| 88 | </xs:sequence> |
| 89 | </xs:complexType> |
| 90 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 91 | |
| 92 | </xs:schema> |