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 54668115C9 for ; Sun, 6 Jul 2014 19:21:39 +0000 (UTC) Received: (qmail 36295 invoked by uid 500); 6 Jul 2014 19:21:39 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 36250 invoked by uid 500); 6 Jul 2014 19:21:39 -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 36241 invoked by uid 99); 6 Jul 2014 19:21:39 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2014 19:21:39 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C55ED9A059C; Sun, 6 Jul 2014 19:21:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: smarru@apache.org To: commits@airavata.apache.org Message-Id: <4849e807839e4f5f811a20fb1de0c8d9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Adding the missing enum generated class Date: Sun, 6 Jul 2014 19:21:38 +0000 (UTC) Repository: airavata Updated Branches: refs/heads/master 109158602 -> 5ba1bb7b3 Adding the missing enum generated class Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/5ba1bb7b Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/5ba1bb7b Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/5ba1bb7b Branch: refs/heads/master Commit: 5ba1bb7b3b465fccb2a174bf27f2593cb0a70950 Parents: 1091586 Author: Suresh Marru Authored: Sun Jul 6 15:21:31 2014 -0400 Committer: Suresh Marru Committed: Sun Jul 6 15:21:31 2014 -0400 ---------------------------------------------------------------------- .../ApplicationParallelismType.java | 83 ++++++++++++++++++++ 1 file changed, 83 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/5ba1bb7b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationParallelismType.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationParallelismType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationParallelismType.java new file mode 100644 index 0000000..a9870f5 --- /dev/null +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationParallelismType.java @@ -0,0 +1,83 @@ + /* + * 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. + */ +/** + * Autogenerated by Thrift Compiler (0.9.1) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.airavata.model.appcatalog.appdeployment; + + +import java.util.Map; +import java.util.HashMap; +import org.apache.thrift.TEnum; + +/** + * Enumeration of application parallelism supported by Airavata + * + * SERIAL: + * Single processor applications without any parallelization. + * + * MPI: + * Messaging Passing Interface. + * + * OPENMP: + * Shared Memory Implementtaion. + * + * OPENMP_MPI: + * Hybrid Applications. + * + */ +@SuppressWarnings("all") public enum ApplicationParallelismType implements org.apache.thrift.TEnum { + SERIAL(0), + MPI(1), + OPENMP(2), + OPENMP_MPI(3); + + private final int value; + + private ApplicationParallelismType(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static ApplicationParallelismType findByValue(int value) { + switch (value) { + case 0: + return SERIAL; + case 1: + return MPI; + case 2: + return OPENMP; + case 3: + return OPENMP_MPI; + default: + return null; + } + } +}