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 --> |
| 6 | <xs:element name="name" type="xs:string" /> |
| 7 | <xs:element name="log_dir" type="xs:string" /> |
| 8 | <xs:element name="txn_log_dir" type="xs:string" /> |
| 9 | <xs:element name="id" type="xs:string" /> |
| 10 | <xs:element name="client_ip" type="xs:string" /> |
| 11 | <xs:element name="cluster_ip" type="xs:string" /> |
| 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" /> |
| 20 | |
| 21 | <!-- definition of complex elements --> |
| 22 | <xs:element name="working_dir"> |
| 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> |
| 30 | |
| 31 | <xs:element name="master_node"> |
| 32 | <xs:complexType> |
| 33 | <xs:sequence> |
| 34 | <xs:element ref="cl:id" /> |
| 35 | <xs:element ref="cl:client_ip" /> |
| 36 | <xs:element ref="cl:cluster_ip" /> |
| 37 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 38 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 39 | </xs:sequence> |
| 40 | </xs:complexType> |
| 41 | </xs:element> |
| 42 | |
| 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> |
| 51 | |
| 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> |
| 59 | |
| 60 | <xs:element name="node"> |
| 61 | <xs:complexType> |
| 62 | <xs:sequence> |
| 63 | <xs:element ref="cl:id" /> |
| 64 | <xs:element ref="cl:cluster_ip" /> |
| 65 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 66 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 67 | <xs:element ref="cl:txn_log_dir" minOccurs="0" /> |
| 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> |
| 73 | |
| 74 | <xs:element name="substitute_nodes"> |
| 75 | <xs:complexType> |
| 76 | <xs:sequence> |
| 77 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
| 78 | </xs:sequence> |
| 79 | </xs:complexType> |
| 80 | </xs:element> |
| 81 | |
| 82 | <xs:element name="cluster"> |
| 83 | <xs:complexType> |
| 84 | <xs:sequence> |
| 85 | <xs:element ref="cl:name" /> |
| 86 | <xs:element ref="cl:username" /> |
| 87 | <xs:element ref="cl:env" minOccurs="0" /> |
| 88 | <xs:element ref="cl:java_home" minOccurs="0" /> |
| 89 | <xs:element ref="cl:log_dir" minOccurs="0" /> |
| 90 | <xs:element ref="cl:txn_log_dir" minOccurs="0" /> |
| 91 | <xs:element ref="cl:store" minOccurs="0" /> |
| 92 | <xs:element ref="cl:iodevices" minOccurs="0" /> |
| 93 | <xs:element ref="cl:working_dir" /> |
| 94 | <xs:element ref="cl:master_node" /> |
| 95 | <xs:element ref="cl:node" maxOccurs="unbounded" /> |
| 96 | <xs:element ref="cl:substitute_nodes"/> |
| 97 | </xs:sequence> |
| 98 | </xs:complexType> |
| 99 | </xs:element> |
| 100 | |
| 101 | </xs:schema> |