airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject svn commit: r1153627 - in /incubator/airavata/trunk/modules/commons/gfac-schema: ./ schemas/
Date Wed, 03 Aug 2011 19:47:36 GMT
Author: smarru
Date: Wed Aug  3 19:47:35 2011
New Revision: 1153627

URL: http://svn.apache.org/viewvc?rev=1153627&view=rev
Log:
gfac schemas changed to airavata namespace AIRAVATA-68

Added:
    incubator/airavata/trunk/modules/commons/gfac-schema/
    incubator/airavata/trunk/modules/commons/gfac-schema/pom.xml
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ApplicationDescription.xsd
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/BasicTypes.xsd
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/HostDescription.xsd
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ServiceMap.xsd
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/error.xsd
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-schemas.xsdconfig
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-simple-types.xsd
    incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac.xsd

Added: incubator/airavata/trunk/modules/commons/gfac-schema/pom.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/pom.xml?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/pom.xml (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/pom.xml Wed Aug  3 19:47:35 2011
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--Licensed to the Apache Software Foundation (ASF) under one or more contributor 
+	license agreements. See the NOTICE file distributed with this work for additional 
+	information regarding copyright ownership. The ASF licenses this file to 
+	you under the Apache License, Version 2.0 (theÏ "License"); you may not use 
+	this file except in compliance with the License. You may obtain a copy of 
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
+	by applicable law or agreed to in writing, software distributed under the 
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
+	OF ANY ~ KIND, either express or implied. See the License for the specific 
+	language governing permissions and limitations under the License. -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>airavata</groupId>
+	<artifactId>airavata-gfac-schema-utils</artifactId>
+	<packaging>jar</packaging>
+	<version>0.0.1-SNAPSHOT</version>
+	<name>Airavata GFac Schema Utilities</name>
+	<url>http://incubator.apache.org/airavata/</url>
+	<repositories>
+		<repository>
+			<name>ogce.m2.all</name>
+			<id>ogce.m2.all</id>
+			<url>http://community.ucs.indiana.edu:9090/archiva/repository/ogce.m2.all</url>
+			<snapshots>
+				<updatePolicy>daily</updatePolicy>
+			</snapshots>
+		</repository>
+	</repositories>
+	<dependencies>
+		<dependency>
+			<groupId>xmlbeans</groupId>
+			<artifactId>xbean</artifactId>
+			<version>2.5.0</version>
+		</dependency>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.7</version>
+		</dependency>
+		<dependency>
+			<groupId>xerces</groupId>
+			<artifactId>xercesImpl</artifactId>
+			<version>2.9.1</version>
+		</dependency>
+		<dependency>
+			<groupId>xpp3</groupId>
+			<artifactId>xpp3</artifactId>
+			<version>1.1.3_7</version>
+		</dependency>
+		<dependency>
+			<groupId>xsul</groupId>
+			<artifactId>xsul</artifactId>
+			<version>2.10.5_b</version>
+		</dependency>
+		<dependency>
+			<groupId>wsdl4j</groupId>
+			<artifactId>wsdl4j</artifactId>
+			<version>1.5.2</version>
+			<type>jar</type>
+		</dependency>
+	</dependencies>
+	<build>
+		<pluginManagement>
+			<plugins>
+				<plugin>
+					<artifactId>maven-clean-plugin</artifactId>
+					<version>2.4</version>
+					<configuration>
+						<filesets>
+							<fileset>
+								<directory>generated</directory>
+								<includes>
+									<include>*.jar</include>
+								</includes>
+							</fileset>
+						</filesets>
+					</configuration>
+				</plugin>
+				<plugin>
+					<groupId>org.apache.maven.plugins</groupId>
+					<artifactId>maven-compiler-plugin</artifactId>
+					<version>2.3.2</version>
+					<configuration>
+						<source>1.5</source>
+						<target>1.5</target>
+					</configuration>
+				</plugin>
+			</plugins>
+		</pluginManagement>
+		<plugins>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>build-helper-maven-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>add-source</id>
+						<phase>generate-sources</phase>
+						<goals>
+							<goal>add-source</goal>
+						</goals>
+						<configuration>
+							<sources>
+								<source>${basedir}/target/generated-sources/xmlbeans</source>
+							</sources>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>xmlbeans-maven-plugin</artifactId>
+				<version>2.3.3</version>
+				<executions>
+					<execution>
+						<goals>
+							<goal>xmlbeans</goal>
+						</goals>
+					</execution>
+				</executions>
+				<inherited>true</inherited>
+				<configuration>
+					<schemaDirectory>schemas</schemaDirectory>
+					<xmlConfigs>
+						<xmlConfig implementation="java.io.File">schemas/gfac-schemas.xsdconfig</xmlConfig>
+					</xmlConfigs>
+					<outputJar>generated/${artifactId}-${version}.jar</outputJar>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+</project>
\ No newline at end of file

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ApplicationDescription.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ApplicationDescription.xsd?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ApplicationDescription.xsd
(added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ApplicationDescription.xsd
Wed Aug  3 19:47:35 2011
@@ -0,0 +1,97 @@
+<schema targetNamespace="http://schemas.airavata.apache.org/gfac"
+        xmlns:gFac="http://schemas.airavata.apache.org/gfac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+	<import namespace="http://schemas.airavata.apache.org/gfac" schemaLocation="BasicTypes.xsd"></import>
+    <element name="ApplicationDescription" type="gFac:applicationDescriptionType"/>
+
+    <complexType name="applicationDescriptionType">
+        <sequence>
+            <element name="authorInfo" type="gFac:authorInfoType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="documentInfo" type="gFac:documentInfoType" minOccurs="0" maxOccurs="1"/>
+            <element name="applicationName" minOccurs="1" maxOccurs="1">
+                <complexType>
+                    <simpleContent>
+                        <extension base="xsd:string" >
+                            <attribute name="targetNamespace" type="xsd:string" use="required"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+            <!-- The type of job that this application is; mpi, condor, multiple, single
-->
+            <element name="jobType" type="gFac:jobTypeType" minOccurs="0" maxOccurs="1"/>
+            <!-- Describes the project that must be charged for the job -->
+            <element name="project" type="gFac:projectType" minOccurs="0" maxOccurs="1"/>
+            <!-- Describes the queue that must be used to submit this job -->
+            <element name="queue" type="gFac:queueType" minOccurs="0" maxOccurs="1"/>
+            <!-- Explicitly set the maximum walltime for a single execution of the executable.
 The units is in minutes. -->
+            <element name="maxWallTime" type="xsd:int" minOccurs="0" maxOccurs="1" />
+            <!-- The number of processors to use for the job -->
+            <element name="count" type="xsd:int" minOccurs="0" maxOccurs="1" />
+            <element name="deploymentDescription" type="gFac:deploymentDescriptionType"
minOccurs="1" maxOccurs="1" />
+            <element name="securityPolicy" type="gFac:securityPolicyType" minOccurs="0"
maxOccurs="1" />
+            <!-- The packages on which this application is dependent on -->
+            <element name="dependency" type="gFac:packageType" minOccurs="0" maxOccurs="unbounded"
/>
+            <element name="hostCount" type="xsd:int" minOccurs="0" maxOccurs="1" />
+            <element name="minMemory" type="xsd:int" minOccurs="0" maxOccurs="1" />
+            <element name="rslparm" type="gFac:RSLParmType" minOccurs="0" maxOccurs="unbounded"
/>
+        </sequence>
+    </complexType>
+
+    <complexType name="deploymentDescriptionType">
+        <sequence>
+            <!-- Host on which the service must be started -->
+            <element name="hostName" type="xsd:string" minOccurs="1" maxOccurs="1" />
+
+            <!-- The executable or script that needs to be executed -->
+            <element name="executable" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+
+            <!-- The path to the LEAD Namelist file for this application on this host
-->
+            <!-- This is used only if the application is a LEAD application that uses
Namelists for input -->
+            <element name="leadNameListFile" type="xsd:anyURI" minOccurs="0" maxOccurs="1"/>
+
+            <!-- This is the working directory for the service. Each application in the
service
+            can have a different working directory -->
+            <element name="workDir" type="xsd:string" minOccurs="0" maxOccurs="1" />
+
+            <!-- Tmp directory for this deployment of the application -->
+            <element name="tmpDir" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+
+            <!-- This can be used to pass env variables to the service at startup. Unused
as of now -->
+            <element name="applicationEnv" type="gFac:nameValuePairType" minOccurs="0"
maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <simpleType name="jobTypeType">
+        <restriction base="xsd:string">
+            <enumeration value="mpi"/>
+            <enumeration value="multiple"/>
+            <enumeration value="single"/>
+            <enumeration value="condor"/>
+        </restriction>
+    </simpleType>
+
+    <complexType name="projectType">
+        <sequence>
+            <element name="projectName" type="xsd:string" minOccurs="1" maxOccurs="1"
/>
+            <element name="projectDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="queueType">
+        <sequence>
+            <element name="queueName" type="xsd:string" minOccurs="1" maxOccurs="1" />
+            <element name="queueDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+	<complexType name="RSLParmType">
+		<simpleContent>
+            <extension base="xsd:string" >
+                <attribute name="name" type="xsd:string" use="required"/>
+            </extension>
+        </simpleContent>
+    </complexType>
+</schema>
\ No newline at end of file

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/BasicTypes.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/BasicTypes.xsd?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/BasicTypes.xsd (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/BasicTypes.xsd Wed Aug  3
19:47:35 2011
@@ -0,0 +1,75 @@
+<schema targetNamespace="http://schemas.airavata.apache.org/gfac"
+        xmlns:gFac="http://schemas.airavata.apache.org/gfac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+
+    <!-- FIXME: Must be extended to include soft-state lifetime management -->
+    <complexType name="securityPolicyType">
+        <sequence>
+            <element name="groupName" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="userName" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="lifeTime" type="xsd:duration" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="nameValuePairType">
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <!-- Most basic information about some important packages. This may be
+    only used as metadata as of now -->
+    <complexType name="packageType">
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+
+            <!-- Version number for this package -->
+            <element name="version" type="xsd:string" minOccurs="0" maxOccurs="1" />
+
+            <!-- Root directory of the package on this host -->
+            <element name="home" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+
+            <!-- A short description of the package -->
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"
/>
+
+            <!-- The dependencies of this package -->
+            <element name="dependency" type="gFac:packageType" minOccurs="0" maxOccurs="unbounded"
/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <element name="anyMetadata" type="xsd:anyType"/>
+
+    <complexType name="authorInfoType">
+        <sequence>
+            <element name="author" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="modificationDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
+            <element name="organization" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="address" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="contactInfo" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="documentInfoType">
+        <sequence>
+            <element name="documentName" minOccurs="1" maxOccurs="1">
+                <complexType>
+                    <simpleContent>
+                        <extension base="xsd:string" >
+                            <attribute name="targetNamespace" type="xsd:string" use="required"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+            <element name="creationDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
+            <element name="documentDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+</schema>
\ No newline at end of file

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/HostDescription.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/HostDescription.xsd?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/HostDescription.xsd (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/HostDescription.xsd Wed Aug
 3 19:47:35 2011
@@ -0,0 +1,83 @@
+<schema targetNamespace="http://schemas.airavata.apache.org/gfac"
+        xmlns:gFac="http://schemas.airavata.apache.org/gfac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+	<import namespace="http://schemas.airavata.apache.org/gfac" schemaLocation="BasicTypes.xsd"></import>
+
+    <element name="HostDescription" type="gFac:hostDescriptionType"/>
+
+    <complexType name="hostDescriptionType">
+        <sequence>
+            <element name="authorInfo" type="gFac:authorInfoType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="documentInfo" type="gFac:documentInfoType" minOccurs="0" maxOccurs="1"/>
+            <element name="hostName" type="xsd:string" minOccurs="1" maxOccurs="1" />
+            <element name="hostConfiguration" type="gFac:hostConfigurationType" minOccurs="1"
maxOccurs="1" />
+        </sequence>
+    </complexType>
+
+    <complexType name="hostConfigurationType">
+        <sequence>
+            <!-- This is the path to the GFac installation -->
+            <element name="gFacPath" type="xsd:string" minOccurs="1" maxOccurs="1" />
+
+            <!-- Temporary directory on this host -->
+            <element name="tmpDir" type="xsd:string" minOccurs="1" maxOccurs="1" />
+
+            <!-- Port range to start the service -->
+            <element name="portRange" type="gFac:portRangeType" minOccurs="0" maxOccurs="1"
/>
+
+            <!-- JAVA -->
+            <element name="java" type="gFac:packageType" minOccurs="0" maxOccurs="unbounded"
/>
+
+            <!-- Other packages -->
+            <element name="package" type="gFac:packageType" minOccurs="0" maxOccurs="unbounded"
/>
+
+            <!-- This can be used to pass env variables to the service
+            or application at startup. Unused as of now -->
+            <element name="hostEnv" type="gFac:nameValuePairType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="globusGatekeeper" type="gFac:globusGatekeeperType" minOccurs="0"
maxOccurs="unbounded"/>
+            <element name="gridFTP" type="gFac:gridFTPType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="sshEnabled" type="xsd:boolean" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="globusGatekeeperType" >
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="endPointReference" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
+            <element name="jobmanagertype" type="gFac:globusJobManagerType" minOccurs="1"
maxOccurs="1"/>
+        </sequence>
+        <attribute name="wsGram" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="gridFTPType" >
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="endPointReference" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <!-- Specifies the range of ports that can be used for starting the service. If the
+    start = end, then the service will be started on the given port -->
+    <complexType name="portRangeType">
+        <sequence>
+            <element name="start" type="xsd:int" minOccurs="1" maxOccurs="1"/>
+            <element name="end" type="xsd:int" minOccurs="1" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <simpleType name="globusJobManagerType">
+      <restriction base="xsd:string">
+        <enumeration value="PBS"/>
+        <enumeration value="SGE"/>
+        <enumeration value="FORK"/>
+        <enumeration value="LSF"/>
+        <enumeration value="MULTI"/>
+        <enumeration value="CONDOR"/>
+        <enumeration value="SPRUCE"/>
+        <enumeration value="Loadleveler"/>        
+      </restriction>
+    </simpleType>
+
+</schema>
\ No newline at end of file

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ServiceMap.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ServiceMap.xsd?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ServiceMap.xsd (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/ServiceMap.xsd Wed Aug  3
19:47:35 2011
@@ -0,0 +1,222 @@
+<schema targetNamespace="http://schemas.airavata.apache.org/gfac"
+        xmlns:gFac="http://schemas.airavata.apache.org/gfac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+	<import namespace="http://schemas.airavata.apache.org/gfac" schemaLocation="gfac.xsd"/>
+	<import namespace="http://schemas.airavata.apache.org/gfac" schemaLocation="BasicTypes.xsd"></import>
+	
+    <element name="ServiceMap" type="gFac:serviceMapType"/>
+
+    <complexType name="serviceMapType">
+        <sequence>
+            <element name="authorInfo" type="gFac:authorInfoType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="documentInfo" type="gFac:documentInfoType" minOccurs="0" maxOccurs="1"/>
+            <element name="service" type="gFac:serviceType" minOccurs="1" maxOccurs="1"
/>
+            <element name="portType" type="gFac:portTypeType" minOccurs="0" maxOccurs="unbounded"
/>
+            <!-- Security policy for this service -->
+            <element name="securityPolicy" type="gFac:securityPolicyType" minOccurs="0"
maxOccurs="1" />
+            <element name="lifeTime" type="gFac:lifeTimeType" minOccurs="0" maxOccurs="1"/>
+            <element name="configuration" type="gFac:ConfigurationType" minOccurs="0"
maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="serviceType">
+        <sequence>
+            <element name="serviceName" minOccurs="1" maxOccurs="1">
+                <complexType>
+                    <simpleContent>
+                        <extension base="xsd:string" >
+                            <attribute name="targetNamespace" type="xsd:string" use="required"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+            <element name="serviceDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="selfReplicating" type="xsd:boolean" use="optional"/>
+        <attribute name="executeLocally" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="portTypeType">
+        <sequence>
+            <element name="portName" type="xsd:QName" minOccurs="0" maxOccurs="1"/>
+            <element name="portDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="method" type="gFac:methodType" minOccurs="1" maxOccurs="unbounded"
/>
+
+            <!-- Security policy for this port type -->
+            <element name="securityPolicy" type="gFac:securityPolicyType" minOccurs="0"
maxOccurs="1" />
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="methodType">
+        <sequence>
+            <element name="methodName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="methodDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+
+            <!-- The application that will be run by this method -->
+            <element name="application" type="gFac:applicationType" minOccurs="1" maxOccurs="1"
/>
+            <element name="inputParameter" type="gFac:inputParameterType" minOccurs="0"
maxOccurs="unbounded" />
+            <element name="outputParameter" type="gFac:outputParameterType" minOccurs="0"
maxOccurs="unbounded" />
+
+            <!-- Security policy for this method -->
+            <element name="securityPolicy" type="gFac:securityPolicyType" minOccurs="0"
maxOccurs="1" />
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="systemDefined" type="xsd:boolean" use="optional"/>
+        <!-- specifies that output data files be staged to the client's host -->
+        <attribute name="stageOutputDataFiles" type="xsd:boolean" use="optional"/>
+        <attribute name="forceFileStagingToWorkDir" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="applicationType">
+        <sequence>
+            <element name="applicationName" minOccurs="1" maxOccurs="1">
+                <complexType>
+                    <simpleContent>
+                        <extension base="xsd:string" >
+                            <attribute name="targetNamespace" type="xsd:string" use="required"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+            <element name="applicationDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+
+        <!-- Specifies that the application must be passed only the paramValues and
+        not paramName/paramValue pairs -->
+        <attribute name="paramValuesOnly" type="xsd:boolean" use="optional"/>
+
+        <!-- Specifies that a FORTRAN NameList file be used instead of command line arguments
-->
+        <attribute name="useLEADNameListFile" type="xsd:boolean" use="optional"/>
+
+        <!-- Specifies that the FORTAN NameList file must be updated with the values
+        specified in the NameList properties file. This is passed along with the
+        SOAP header -->
+        <attribute name="useLEADNameListPropertiesFile" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="inputParameterType">
+        <sequence>
+            <element name="parameterName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="parameterDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="parameterValue" type="gFac:parameterValueType" minOccurs="0"
maxOccurs="unbounded"/>
+            <element name="parameterType" type="gFac:inputDataType" minOccurs="1" maxOccurs="1"
/>
+            <element name="anyMetadata" type="xsd:anyType" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+        <!-- This attribute is used by the service to generate the input element in the
HTML form
+        for this parameter. For inputDataType="RemoteFile", you must specify "File" here
-->
+        <attribute name="displayAs" use="optional">
+            <simpleType>
+                <restriction base="xsd:string">
+                    <enumeration value="ListBox"/>
+                    <enumeration value="RadioButton"/>
+                </restriction>
+            </simpleType>
+        </attribute>
+    </complexType>
+
+    <complexType name="outputParameterType">
+        <sequence>
+            <element name="parameterName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="parameterDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="parameterType" type="gFac:outputDataType" minOccurs="1" maxOccurs="1"
/>
+            <!-- The regular expression that represents the pattern of the output of the
+            application. This regular expression will be used by the service to
+            search for output of the application in its stdout -->
+            <element name="regExp" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="anyMetadata" type="xsd:anyType" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="parameterValueType">
+        <sequence>
+            <element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+
+    <!-- An enumeration of supported input data types -->
+    <simpleType name="inputDataType">
+      <restriction base="xsd:string">
+        <enumeration value="String"/>
+        <enumeration value="Integer"/>
+        <enumeration value="Float"/>
+        <enumeration value="Double"/>
+        <enumeration value="Boolean"/>
+        <enumeration value="URI"/>
+        <enumeration value="StringArray"/>
+        <enumeration value="IntegerArray"/>
+        <enumeration value="FloatArray"/>
+        <enumeration value="DoubleArray"/>
+        <enumeration value="BooleanArray"/>
+        <enumeration value="URIArray"/>
+        <enumeration value="LEADFileID"/>
+        <enumeration value="LEADFileIDArray"/>
+        <enumeration value="LEADNameListFile"/>
+        <enumeration value="LEADNameListPropertiesFile"/>
+        <enumeration value="HostName"/>
+        <enumeration value="LeadCrosscutParameters"/>
+        <enumeration value="XmlElement"/>
+	    <enumeration value="DataID"/>
+        <enumeration value="DataIDArray"/>        
+      </restriction>
+    </simpleType>
+
+    <!-- An enumeration of supported output data types -->
+    <simpleType name="outputDataType">
+      <restriction base="xsd:string">
+        <enumeration value="String"/>
+        <enumeration value="Integer"/>
+        <enumeration value="Float"/>
+        <enumeration value="Double"/>
+        <enumeration value="Boolean"/>
+        <enumeration value="URI"/>
+        <enumeration value="StringArray"/>
+        <enumeration value="IntegerArray"/>
+        <enumeration value="FloatArray"/>
+        <enumeration value="DoubleArray"/>
+        <enumeration value="BooleanArray"/>
+        <enumeration value="URIArray"/>
+        <enumeration value="LEADFileID"/>
+        <enumeration value="LEADFileIDArray"/>
+        <enumeration value="StdOut"/>
+        <enumeration value="StdErr"/>
+        <enumeration value="XmlElement"/>
+        <enumeration value="DataID"/>
+        <enumeration value="DataIDArray"/>
+      </restriction>
+    </simpleType>
+
+    <complexType name="boolFlagsType">
+        <sequence>
+            <element name="value" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="doubleFlagsType">
+        <sequence>
+            <element name="value" type="xsd:double" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="stringFlagsType">
+        <sequence>
+            <element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="lifeTimeType">
+        <sequence>
+            <element name="notAfterInactiveMinutes" type="xsd:int" minOccurs="1" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+</schema>
\ No newline at end of file

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/error.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/error.xsd?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/error.xsd (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/error.xsd Wed Aug  3 19:47:35
2011
@@ -0,0 +1,83 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+
+<schema xmlns = "http://www.w3.org/2001/XMLSchema"
+        targetNamespace = "http://inca.sdsc.edu/dataModel/application1.0"
+        xmlns:app = "http://inca.sdsc.edu/dataModel/application1.0"
+        xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
+        elementFormDefault = "unqualified">
+
+  <!-- Represents an action in an application/workflow that succeeded or
+       failed.  -->
+  <element name = "action">
+    <complexType>
+      <sequence>
+        <!-- Some identifier unique to identify the action - e.g.,
+             workflow id -->
+        <element name = "id" type = "string"/>
+
+        <!-- Type of application (for Inca).  E.g., LEAD -->
+        <element name = "application" type = "string" minOccurs = "0"/>
+
+        <!-- Name of API/tool used. E.g., CoG 1.2 -->
+        <element name = "api" type = "string"/>
+
+        <!-- type of action -->
+        <choice maxOccurs = "unbounded">
+          <element name = "dataTransfer" type="app:dataTransfer"/>
+          <element name = "fileSystem" type="app:fileSystem"/>
+          <element name = "job" type = "app:job"/>
+          <element name = "cmdapplication" type = "app:Application"/>
+        </choice>
+
+        <!-- For jobs, startTime and endTime are probably useful
+             For data transfers, maybe just startTime or endTime -->
+        <element name = "startTime" type = "string" minOccurs = "0"/>
+        <element name = "endTime" type = "string" minOccurs = "0"/>
+      </sequence>
+    </complexType>
+  </element>
+  
+  <complexType  name = "dataTransfer">
+    <sequence>
+      <!-- Set if 3rd party transfer -->
+      <element name = "origHost" type = "string" minOccurs = "0"/>
+      <!-- GridFTP URL -->
+      <element name = "source" type = "string"/>
+      <!-- GridFTP URL -->
+      <element name = "dest" type = "string"/>
+      <!-- Flags -->
+      <element name = "options" type = "string"/>
+    </sequence>
+  </complexType>
+
+  <complexType name = "fileSystem">
+    <sequence>
+      <!-- Command and arguments.  E.g., mkdir someDir -->
+      <element name = "command" type = "string"/>
+      <!-- GridFTP URL -->
+      <element name = "contact" type = "string"/>
+    </sequence>
+  </complexType>
+
+  <complexType name = "job">
+    <sequence>
+      <!-- hostname -->
+      <element name = "submitHost" type = "string"/>
+      <!-- Full GRAM contact string -->
+      <element name = "contact" type = "string"/>
+      <!-- RSL string - is this XML now? -->
+      <element name = "rsl" type = "string"/>
+    </sequence>
+  </complexType>
+  
+  <complexType name = "Application">
+    <sequence>
+      <element name = "appHost" type = "string"/>
+      <element name = "appWorkDir" type = "string"/>
+      <element name = "execuatable" type = "string"/>
+      <element name = "serviceHost" type = "string"/>
+      <element name = "appStdoutAsStr" type = "string"/>
+    </sequence>
+  </complexType>
+
+</schema>

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-schemas.xsdconfig
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-schemas.xsdconfig?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-schemas.xsdconfig (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-schemas.xsdconfig Wed
Aug  3 19:47:35 2011
@@ -0,0 +1,11 @@
+<xb:config  xmlns:xb="http://www.bea.com/2002/09/xbean/config">
+
+    <xb:namespace uri="http://schemas.airavata.apache.org/gfac">
+        <xb:package>org.apache.airavata.schemas.gfac</xb:package>
+    </xb:namespace>
+
+   <xb:namespace uri="http://inca.sdsc.edu/dataModel/application1.0">
+        <xb:package>org.apache.airavata.schemas.gfac.inca.faults</xb:package>
+    </xb:namespace>
+    
+</xb:config>
\ No newline at end of file

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-simple-types.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-simple-types.xsd?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-simple-types.xsd (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac-simple-types.xsd Wed
Aug  3 19:47:35 2011
@@ -0,0 +1,64 @@
+ <xsd:schema elementFormDefault="unqualified" targetNamespace="http://schemas.airavata.apache.org/gfac"

+ 	xmlns="http://www.w3.org/2001/XMLSchema" 
+ 	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ 	xmlns:gfac="http://schemas.airavata.apache.org/gfac">
+      <xsd:simpleType name="LEADFileIDType">
+        <xsd:restriction base="xsd:anyURI" />
+      </xsd:simpleType>
+      <xsd:simpleType name="LEADNameListFileType">
+        <xsd:restriction base="xsd:anyURI" />
+      </xsd:simpleType>
+      <xsd:simpleType name="LEADNameListPropertiesFileType">
+        <xsd:restriction base="xsd:anyURI" />
+      </xsd:simpleType>
+      <xsd:simpleType name="HostNameType">
+        <xsd:restriction base="xsd:string" />
+      </xsd:simpleType>
+      <xsd:complexType name="DataIDType">
+        <xsd:simpleContent>
+          <xsd:extension base="xsd:anyURI">
+            <xsd:attribute name="location" type="xsd:string" use="optional" />
+          </xsd:extension>
+        </xsd:simpleContent>
+      </xsd:complexType>
+      <xsd:complexType name="LEADFileIDArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:anyURI"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="StringArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:string"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="IntegerArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:int"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="FloatArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:float"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="DoubleArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:double"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="BooleanArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:boolean"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="URIArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:anyURI"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="DataIDArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="gfac:DataIDType"
/>
+        </xsd:sequence>
+      </xsd:complexType>
+    </xsd:schema>
\ No newline at end of file

Added: incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac.xsd?rev=1153627&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac.xsd (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/schemas/gfac.xsd Wed Aug  3 19:47:35
2011
@@ -0,0 +1,47 @@
+<schema targetNamespace="http://schemas.airavata.apache.org/gfac"
+        xmlns:gFac="http://schemas.airavata.apache.org/gfac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+	<element name="configuration" type="gFac:ConfigurationType"/>
+    <complexType name="ConfigurationType">
+        <sequence>
+            <element name="parameter" type="gFac:ParameterType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="extension" type="gFac:ExtensionType" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="ParameterType">
+    	<complexContent>
+            <extension base="xsd:anyType">
+                    <attribute name="name" type="xsd:string"/>
+			        <attribute name="value" type="xsd:string" use="optional"/>
+            </extension>
+         </complexContent>
+    </complexType>
+
+    <!-- Most basic information about some important packages. This may be
+    only used as metadata as of now -->
+    <complexType name="ExtensionType">
+        <sequence>
+            <element name="parameter" type="gFac:ParameterType" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="className" type="xsd:string" use="optional"/>
+        <attribute name="ref" type="xsd:string" use="optional"/>
+        <attribute name="type" type="gFac:ETypeType" use="optional"/>
+        <attribute name="pipe" type="gFac:PipeType" use="optional"/>
+    </complexType>
+    
+    <simpleType name="ETypeType">
+      <restriction base="xsd:string">
+        <enumeration value="static"/>
+        <enumeration value="dynamic"/>
+      </restriction>
+    </simpleType>
+    <simpleType name="PipeType">
+      <restriction base="xsd:string">
+        <enumeration value="IN"/>
+        <enumeration value="OUT"/>
+      </restriction>
+    </simpleType>
+</schema>
\ No newline at end of file



Mime
View raw message