airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject git commit: Adding the missing enum generated class
Date Sun, 06 Jul 2014 19:21:38 GMT
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 <smarru@apache.org>
Authored: Sun Jul 6 15:21:31 2014 -0400
Committer: Suresh Marru <smarru@apache.org>
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;
+    }
+  }
+}


Mime
View raw message