Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73E031192B for ; Fri, 16 May 2014 21:50:19 +0000 (UTC) Received: (qmail 80957 invoked by uid 500); 16 May 2014 20:39:49 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 229 invoked by uid 500); 16 May 2014 20:14:53 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 2128 invoked by uid 99); 16 May 2014 20:02:19 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 20:02:19 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 852D092B2A3; Fri, 16 May 2014 20:02:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: chathuri@apache.org To: commits@airavata.apache.org Date: Fri, 16 May 2014 20:02:19 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/7] adding id to all the job submission protocols and data movement protocols - AIRAVATA-1203 Repository: airavata Updated Branches: refs/heads/master f9f173cd4 -> 0317c4a63 http://git-wip-us.apache.org/repos/asf/airavata/blob/0317c4a6/airavata-api/thrift-interface-descriptions/computeResourceDescription.thrift ---------------------------------------------------------------------- diff --git a/airavata-api/thrift-interface-descriptions/computeResourceDescription.thrift b/airavata-api/thrift-interface-descriptions/computeResourceDescription.thrift deleted file mode 100644 index 4707c5f..0000000 --- a/airavata-api/thrift-interface-descriptions/computeResourceDescription.thrift +++ /dev/null @@ -1,251 +0,0 @@ -/* - * 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. - * - */ - -namespace java org.apache.airavata.model.appcatalog.computeresource - -const string DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS" - -/** - * Enumeration of local resource job managers supported by Airavata - * - * FORK: - * Forking of commands without any job manager - * - * PBS: - * Job manager supporting the Portal Batch System (PBS) protocol. Some examples include TORQUE, PBSPro, Grid Engine. - * - * UGE: - * Univa Grid Engine, a variation of PBS implementation. - * - * SLURM: - * The Simple Linux Utility for Resource Management is a open source workload manager. - * -*/ -enum ResourceJobManager { - FORK, - PBS, - UGE, - SLURM -} - -/** - * Enumeration of Airavata supported Job Submission Mechanisms for High Perforamance Computing Clusters. - * - * SSH: - * Execute remote job submission commands using via secure shell protocol. - * - * GRAM: - * Execute remote jobs via Globus GRAM service. - * - * UNICORE: - * Execute remote jobs via Unicore services - * -*/ -enum JobSubmissionProtocol { - SSH, - GRAM, - UNICORE -} - -/** - * Enumeration of data movement supported by Airavata - * - * SCP: - * Job manager supporting the Portal Batch System (PBS) protocol. Some examples include TORQUE, PBSPro, Grid Engine. - * - * SFTP: - * The Simple Linux Utility for Resource Management is a open source workload manager. - * - * GridFTP: - * Globus File Transfer Protocol - * - * UNICORE_STORAGE_SERVICE: - * Storage Service Provided by Unicore - * -*/ -enum DataMovementProtocol { - SCP, - SFTP, - GridFTP, - UNICORE_STORAGE_SERVICE -} - -/** - * Enumeration of security authentication and authorization mechanisms supported by Airavata. This enumeration just - * describes the supported mechanism. The corresponding security credentials are registered with Airavata Credential - * store. - * - * USERNAME_PASSWORD: - * A User Name. - * - * SSH_KEYS: - * SSH Keys - * -*/ -enum SecurityProtocol { - USERNAME_PASSWORD, - SSH_KEYS, - GSI, - KERBEROS, - OAUTH -} - - - -struct SCPDataMovement { - 1: required SecurityProtocol securityProtocol, - 2: optional i32 sshPort = 22, -} - -struct SSHJobSubmission { - 2: required ResourceJobManager resourceJobManager, - 3: optional i32 sshPort = 22 -} - -struct GlobusJobSubmission { - 1: required SecurityProtocol securityProtocol, - 2: required ResourceJobManager resourceJobManager, - 3: optional string globusGateKeeperEndPoint -} - -struct GSISSHJobSubmission { - 2: required ResourceJobManager resourceJobManager, - 3: optional i32 sshPort = 22, - 4: optional set exports, - 5: optional list preJobCommands, - 6: optional list postJobCommands, - 7: optional string installedPath, - 8: optional string monitorMode -} - -/** - * Job Submission Protocols - * - * resourceId: - * - * hostName: - * Fully Qualified Host Name. - * - * ipAddress: - * IP Addresse of the Hostname. - * - * resourceDescription: - * A user friendly description of the hostname. - * - * preferedJobSubmissionProtocol: - * HPC resources may have multiple options to interact with the resource. This flag identified a prefered mechanism. - * - * preferedDataMovementProtocol: - * Option to specify a prefered data movement mechanism of the available options. - * -*/ -struct JobSubmissionProtocols { - 1: required bool isEmpty = 0, - 2: optional JobSubmissionProtocol preferedJobSubmissionProtocol, - 3: optional SSHJobSubmission sshJobSubmissionInfo, - 4: optional string globusGRAMHost, - 5: optional i32 globusGRAMPort = 2119, - 6: optional string unicoreBESEndPoint -} - -/** - * Computational Resource Description - * - * resourceId: - * - * hostName: - * Fully Qualified Host Name. - * - * ipAddress: - * IP Addresse of the Hostname. - * - * resourceDescription: - * A user friendly description of the hostname. - * - * JobSubmissionProtocols: - * A computational resources may have one or more ways of submitting Jobs. This structure - * will hold all available mechanisms to interact with the resource. - * - * DataMovementProtocol: - * Option to specify a prefered data movement mechanism of the available options. - * -*/ -struct ComputeResourceDescription { - 1: required bool isEmpty = 0, - 2: required string resourceId = DEFAULT_ID, - 3: required string hostName, - 4: optional set hostAliases, - 5: optional set ipAddresses, - 6: optional string resourceDescription, - 7: optional string scratchLocation, - 8: optional string preferredJobSubmissionProtocol, - 9: required map jobSubmissionProtocols, - 10: required map dataMovementProtocols -} - -/* -struct ComputeResourceDescription { - 1: required bool isEmpty = 0, - 2: required string resourceId = DEFAULT_ID, - 3: required string hostName, - 4: optional set hostAliases, - 4: optional set ipAddresses, - 5: optional string resourceDescription, - 6: required map jobSubmissionProtocols, - 7: required map dataMovementProtocols -}*/ - -enum ParameterType { - STRING, - INT, - URL, - -} - -struct Validation{ -} - -struct InputParameter { - 1:required string name, - 2:required ParameterType type, - 3:required bool isOptional=0, - 4:optional string defaultValue, - 5:optional list validations -} - -struct OutputParameter { - 1:required string name, - 2:required ParameterType type, -} - -struct ApplicationDeployment { - 1: required string deploymentId = DEFAULT_ID, - 2: required string hostId, - 3: required string executablePath, - 4: optional map environment, -} - -struct Application { - 1: required bool isEmpty = 0, - 2: required string applicationId = DEFAULT_ID, - 4: optional list input, - 5: optional list output, - 6: required list deployment -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0317c4a6/airavata-api/thrift-interface-descriptions/experimentModel.thrift ---------------------------------------------------------------------- diff --git a/airavata-api/thrift-interface-descriptions/experimentModel.thrift b/airavata-api/thrift-interface-descriptions/experimentModel.thrift index 537d20d..bc2b34d 100644 --- a/airavata-api/thrift-interface-descriptions/experimentModel.thrift +++ b/airavata-api/thrift-interface-descriptions/experimentModel.thrift @@ -363,7 +363,7 @@ struct ValidationResults { struct Experiment { 1: required string experimentID = DEFAULT_ID, - 2: required string projectID = DEFAULT_PROJECT_NAME + 2: required string projectID = DEFAULT_PROJECT_NAME, 3: optional i64 creationTime, 4: required string userName, 5: required string name,