Repository: airavata Updated Branches: refs/heads/master e02286bec -> 20f19e87f
adding data storage interface Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/77a7e77e Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/77a7e77e Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/77a7e77e Branch: refs/heads/master Commit: 77a7e77e92090b5d949e24d77e7a788637265a5d Parents: ae5dab4 Author: Chathuri Wimalasena <[email protected]> Authored: Mon Nov 23 10:58:05 2015 -0500 Committer: scnakandala <[email protected]> Committed: Tue Dec 15 21:08:25 2015 -0500 ---------------------------------------------------------------------- .../Model/AppCatalog/ComputeResource/Types.php | 9 +++ .../appcatalog/computeresource/DMType.java | 62 ++++++++++++++++++++ .../compute_resource_model.thrift | 5 ++ 3 files changed, 76 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/77a7e77e/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php index 006e85b..57a4574 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php @@ -182,6 +182,15 @@ final class MonitorMode { ); } +final class DMType { + const COMPUTE_RESOURCE = 0; + const STORAGE_RESOURCE = 1; + static public $__names = array( + 0 => 'COMPUTE_RESOURCE', + 1 => 'STORAGE_RESOURCE', + ); +} + /** * Provider name * http://git-wip-us.apache.org/repos/asf/airavata/blob/77a7e77e/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DMType.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DMType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DMType.java new file mode 100644 index 0000000..4cb727e --- /dev/null +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DMType.java @@ -0,0 +1,62 @@ +/** + * 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.2) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.airavata.model.appcatalog.computeresource; + + +import java.util.Map; +import java.util.HashMap; +import org.apache.thrift.TEnum; + +public enum DMType implements org.apache.thrift.TEnum { + COMPUTE_RESOURCE(0), + STORAGE_RESOURCE(1); + + private final int value; + + private DMType(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 DMType findByValue(int value) { + switch (value) { + case 0: + return COMPUTE_RESOURCE; + case 1: + return STORAGE_RESOURCE; + default: + return null; + } + } +} http://git-wip-us.apache.org/repos/asf/airavata/blob/77a7e77e/thrift-interface-descriptions/data-models/resource-catalog-models/compute_resource_model.thrift ---------------------------------------------------------------------- diff --git a/thrift-interface-descriptions/data-models/resource-catalog-models/compute_resource_model.thrift b/thrift-interface-descriptions/data-models/resource-catalog-models/compute_resource_model.thrift index efacd0b..ded9c4f 100644 --- a/thrift-interface-descriptions/data-models/resource-catalog-models/compute_resource_model.thrift +++ b/thrift-interface-descriptions/data-models/resource-catalog-models/compute_resource_model.thrift @@ -196,6 +196,11 @@ enum MonitorMode { FORK } +enum DMType { + COMPUTE_RESOURCE, + STORAGE_RESOURCE +} + /** * Locally Fork Jobs as OS processes *
