elastic-grid
| /trunk/applications/rest-api/src/main/java/com/elasticgrid/rest/RestApplication.java |
|---|
| 76,10 → 76,10 |
| appInfo.getNamespaces().put("http://www.w3.org/2001/XMLSchema-instance", "xsi"); |
| GrammarsInfo grammar = new GrammarsInfo(); |
| IncludeInfo include = new IncludeInfo(); |
| include.setTargetRef(new Reference("http://www.elastic-grid.com/schemas/elastic-grid-0.9.1.xsd")); |
| // include.setTargetRef(new Reference("applications/rest-api/src/main/resources/com/elasticgrid/rest/elastic-grid-0.9.1.xsd")); |
| include.setTargetRef(new Reference("http://www.elastic-grid.com/schemas/elastic-grid-0.9.2.xsd")); |
| // include.setTargetRef(new Reference("applications/rest-api/src/main/resources/com/elasticgrid/rest/elastic-grid-0.9.2.xsd")); |
| // ClassLoader cl = getClass().getClassLoader(); |
| // URL resource = cl.getResource("elastic-grid-0.9.1.xsd"); |
| // URL resource = cl.getResource("elastic-grid-0.9.2.xsd"); |
| // include.setTargetRef(new Reference(resource.toString())); |
| grammar.getIncludes().add(include); |
| appInfo.setGrammars(grammar); |
| /trunk/applications/rest-api/src/main/resources/com/elasticgrid/rest/elastic-grid-lan-0.9.1.xsd |
|---|
| File deleted |
| \ No newline at end of file |
| /trunk/applications/rest-api/src/main/resources/com/elasticgrid/rest/elastic-grid-0.9.1.xsd |
|---|
| File deleted |
| \ No newline at end of file |
| /trunk/applications/rest-api/src/main/resources/com/elasticgrid/rest/elastic-grid-lan-0.9.2.xsd |
|---|
| New file |
| 0,0 → 1,39 |
| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- |
| Elastic Grid |
| Copyright (C) 2008-2009 Elastic Grid, LLC. |
| This program is free software: you can redistribute it and/or modify |
| it under the terms of the GNU Affero General Public License as |
| published by the Free Software Foundation, either version 3 of the |
| License, or (at your option) any later version. |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. |
| You should have received a copy of the GNU Affero General Public License |
| along with this program. If not, see <http://www.gnu.org/licenses/>. |
| --> |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" |
| targetNamespace="urn:elastic-grid:lan" |
| xmlns:eg="urn:elastic-grid:eg" |
| xmlns:lan="urn:elastic-grid:lan"> |
| <xs:import namespace="urn:elastic-grid:eg" schemaLocation="elastic-grid-0.9.2.xsd"/> |
| <xs:complexType name="cluster"> |
| <xs:sequence> |
| <xs:sequence maxOccurs="unbounded" minOccurs="1"> |
| <xs:element name="node" type="eg:node"/> |
| </xs:sequence> |
| <xs:element name="applications" type="eg:applications" minOccurs="0"/> |
| </xs:sequence> |
| <xs:attribute name="name" type="xs:string"/> |
| </xs:complexType> |
| </xs:schema> |
| /trunk/applications/rest-api/src/main/resources/com/elasticgrid/rest/elastic-grid-0.9.2.xsd |
|---|
| New file |
| 0,0 → 1,76 |
| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- |
| Elastic Grid |
| Copyright (C) 2008-2009 Elastic Grid, LLC. |
| This program is free software: you can redistribute it and/or modify |
| it under the terms of the GNU Affero General Public License as |
| published by the Free Software Foundation, either version 3 of the |
| License, or (at your option) any later version. |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. |
| You should have received a copy of the GNU Affero General Public License |
| along with this program. If not, see <http://www.gnu.org/licenses/>. |
| --> |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" |
| targetNamespace="urn:elastic-grid:eg" |
| xmlns:eg="urn:elastic-grid:eg" |
| xmlns:lan="urn:elastic-grid:lan"> |
| <xs:import namespace="urn:elastic-grid:lan" schemaLocation="elastic-grid-lan-0.9.2.xsd"/> |
| <xs:element name="clusters"> |
| <xs:complexType> |
| <xs:sequence maxOccurs="unbounded"> |
| <xs:element name="cluster" type="lan:cluster"/> |
| </xs:sequence> |
| </xs:complexType> |
| </xs:element> |
| <xs:element name="cluster-provisioning"> |
| <xs:complexType mixed="true"> |
| <xs:sequence> |
| <xs:element name="monitors" minOccurs="1" maxOccurs="1"/> |
| <xs:element name="agents" minOccurs="1" maxOccurs="1"/> |
| </xs:sequence> |
| <xs:attribute name="name" type="xs:string"/> |
| </xs:complexType> |
| </xs:element> |
| <xs:complexType name="node" xml:base="xs:string" mixed="true"> |
| <xs:attribute name="profile" use="required"> |
| <xs:simpleType xml:base="xs:string"> |
| <xs:restriction base="xs:string"> |
| <xs:enumeration value="monitor"/> |
| <xs:enumeration value="agent"/> |
| </xs:restriction> |
| </xs:simpleType> |
| </xs:attribute> |
| </xs:complexType> |
| <xs:complexType name="applications"> |
| <xs:sequence maxOccurs="unbounded" minOccurs="0"> |
| <xs:element name="application" type="eg:application"/> |
| </xs:sequence> |
| </xs:complexType> |
| <xs:complexType name="application"> |
| </xs:complexType> |
| <xs:complexType name="services"> |
| </xs:complexType> |
| <xs:complexType name="service"> |
| </xs:complexType> |
| </xs:schema> |
| /trunk/applications/rest-api/pom.xml |
|---|
| 4,7 → 4,7 |
| <parent> |
| <groupId>com.elasticgrid</groupId> |
| <artifactId>applications</artifactId> |
| <version>0.9.1</version> |
| <version>0.9.2</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>com.elasticgrid.applications</groupId> |