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" /> |
| 7 | <xs:element name="logdir" type="xs:string" /> |
| 8 | <xs:element name="id" type="xs:string" /> |
| 9 | <xs:element name="client-ip" type="xs:string" /> |
| 10 | <xs:element name="cluster-ip" type="xs:string" /> |
| 11 | <xs:element name="key" type="xs:string" /> |
| 12 | <xs:element name="value" type="xs:string" /> |
| 13 | <xs:element name="dir" type="xs:string" /> |
| 14 | <xs:element name="NFS" type="xs:boolean" /> |
| 15 | <xs:element name="store" type="xs:string" /> |
| 16 | <xs:element name="iodevices" type="xs:string" /> |
| 17 | <xs:element name="java_home" type="xs:string" /> |
| 18 | <xs:element name="username" type="xs:string" /> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 19 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame^] | 20 | <!-- definition of complex elements --> |
| 21 | <xs:element name="workingDir"> |
| 22 | <xs:complexType> |
| 23 | <xs:sequence> |
| 24 | <xs:element ref="cl:dir" /> |
| 25 | <xs:element ref="cl:NFS" /> |
| 26 | </xs:sequence> |
| 27 | </xs:complexType> |
| 28 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 29 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame^] | 30 | <xs:element name="master-node"> |
| 31 | <xs:complexType> |
| 32 | <xs:sequence> |
| 33 | <xs:element ref="cl:id" /> |
| 34 | <xs:element ref="cl:client-ip" /> |
| 35 | <xs:element ref="cl:cluster-ip" /> |
| 36 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 37 | <xs:element ref="cl:logdir" minOccurs="0" /> |
| 38 | </xs:sequence> |
| 39 | </xs:complexType> |
| 40 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 41 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame^] | 42 | <xs:element name="property"> |
| 43 | <xs:complexType> |
| 44 | <xs:sequence> |
| 45 | <xs:element ref="cl:key" /> |
| 46 | <xs:element ref="cl:value" /> |
| 47 | </xs:sequence> |
| 48 | </xs:complexType> |
| 49 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 50 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame^] | 51 | <xs:element name="env"> |
| 52 | <xs:complexType> |
| 53 | <xs:sequence> |
| 54 | <xs:element ref="cl:property" minOccurs="0" maxOccurs="unbounded" /> |
| 55 | </xs:sequence> |
| 56 | </xs:complexType> |
| 57 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 58 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame^] | 59 | <xs:element name="node"> |
| 60 | <xs:complexType> |
| 61 | <xs:sequence> |
| 62 | <xs:element ref="cl:id" /> |
| 63 | <xs:element ref="cl:cluster-ip" /> |
| 64 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 65 | <xs:element ref="cl:logdir" minOccurs="0" /> |
| 66 | <xs:element ref="cl:store" minOccurs="0" /> |
| 67 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
| 68 | </xs:sequence> |
| 69 | </xs:complexType> |
| 70 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 71 | |
Raman Grover | 27a0c4c | 2013-04-16 17:29:40 -0700 | [diff] [blame^] | 72 | <xs:element name="cluster"> |
| 73 | <xs:complexType> |
| 74 | <xs:sequence> |
| 75 | <xs:element ref="cl:name" /> |
| 76 | <xs:element ref="cl:username" /> |
| 77 | <xs:element ref="cl:env" minOccurs="0" /> |
| 78 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 79 | <xs:element ref="cl:logdir" minOccurs="0" /> |
| 80 | <xs:element ref="cl:store" minOccurs="0" /> |
| 81 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
| 82 | <xs:element ref="cl:workingDir" /> |
| 83 | <xs:element ref="cl:master-node" /> |
| 84 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
| 85 | </xs:sequence> |
| 86 | </xs:complexType> |
| 87 | </xs:element> |
ramangrover29 | f18d456 | 2013-02-15 23:56:00 +0000 | [diff] [blame] | 88 | |
| 89 | </xs:schema> |