vinayakb | 5ee049d | 2013-04-06 21:21:29 +0000 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
| 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mg="installer" targetNamespace="installer" elementFormDefault="qualified"> |
| 3 | |
| 4 | <!-- definition of simple types --> |
| 5 | <xs:element name="asterix_home" type="xs:string"/> |
| 6 | <xs:element name="hyracks_home" type="xs:string"/> |
| 7 | <xs:element name="hdfsurl" type="xs:string"/> |
| 8 | <xs:element name="server" type="xs:string"/> |
| 9 | <xs:element name="clientPort" type="xs:integer"/> |
| 10 | <xs:element name="homeDir" type="xs:string"/> |
| 11 | <xs:element name="version" type="xs:string"/> |
| 12 | <xs:element name="url" type="xs:string"/> |
| 13 | <xs:element name="backupDir" type="xs:string"/> |
| 14 | <xs:element name="java_home" type="xs:string"/> |
| 15 | |
| 16 | <!-- definition of complex elements --> |
| 17 | <xs:element name="hdfs"> |
| 18 | <xs:complexType> |
| 19 | <xs:sequence> |
| 20 | <xs:element ref="mg:version"/> |
| 21 | <xs:element ref="mg:url"/> |
| 22 | </xs:sequence> |
| 23 | </xs:complexType> |
| 24 | </xs:element> |
| 25 | |
| 26 | <xs:element name="backup"> |
| 27 | <xs:complexType> |
| 28 | <xs:sequence> |
| 29 | <xs:element ref="mg:hdfs" minOccurs="0"/> |
| 30 | <xs:element ref="mg:backupDir"/> |
| 31 | </xs:sequence> |
| 32 | </xs:complexType> |
| 33 | </xs:element> |
| 34 | |
| 35 | <xs:element name="zookeeper"> |
| 36 | <xs:complexType> |
| 37 | <xs:sequence> |
| 38 | <xs:element ref="mg:homeDir"/> |
| 39 | <xs:element ref="mg:clientPort"/> |
| 40 | <xs:element ref="mg:servers"/> |
| 41 | </xs:sequence> |
| 42 | </xs:complexType> |
| 43 | </xs:element> |
| 44 | |
| 45 | <xs:element name="servers"> |
| 46 | <xs:complexType> |
| 47 | <xs:sequence> |
| 48 | <xs:element ref="mg:java_home"/> |
| 49 | <xs:element ref="mg:server" maxOccurs="unbounded"/> |
| 50 | </xs:sequence> |
| 51 | </xs:complexType> |
| 52 | </xs:element> |
| 53 | |
| 54 | <xs:element name="configuration"> |
| 55 | <xs:complexType> |
| 56 | <xs:sequence> |
| 57 | <xs:element ref="mg:backup" minOccurs="0"/> |
| 58 | <xs:element ref="mg:asterix_home" minOccurs="0"/> |
| 59 | <xs:element ref="mg:hyracks_home" minOccurs="0"/> |
| 60 | <xs:element ref="mg:hdfsurl" minOccurs="0"/> |
| 61 | <xs:element ref="mg:zookeeper"/> |
| 62 | </xs:sequence> |
| 63 | </xs:complexType> |
| 64 | </xs:element> |
| 65 | |
| 66 | </xs:schema> |