You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2014/07/06 13:08:30 UTC
git commit: API Method placeholders for compute resource -
AIRAVATA-1228
Repository: airavata
Updated Branches:
refs/heads/master a9cdafd70 -> 53d62d155
API Method placeholders for compute resource - AIRAVATA-1228
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/53d62d15
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/53d62d15
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/53d62d15
Branch: refs/heads/master
Commit: 53d62d155d84215368ddb9ca5b9ab8e8c60d0ce4
Parents: a9cdafd
Author: Suresh Marru <sm...@apache.org>
Authored: Sun Jul 6 07:08:24 2014 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Sun Jul 6 07:08:24 2014 -0400
----------------------------------------------------------------------
.../server/handler/AiravataServerHandler.java | 50 ++++++++++++++++++++
.../airavataAPI.thrift | 8 ++--
2 files changed, 54 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/53d62d15/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index be6f4bb..322ab46 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -43,6 +43,7 @@ import org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule;
import org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription;
import org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType;
import org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType;
+import org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription;
import org.apache.airavata.model.error.AiravataClientException;
import org.apache.airavata.model.error.AiravataErrorType;
import org.apache.airavata.model.error.AiravataSystemException;
@@ -1487,4 +1488,53 @@ public class AiravataServerHandler implements Airavata.Iface, Watcher {
}
}
+ /**
+ * Register a Compute Resource.
+ *
+ * @param computeResourceDescription Compute Resource Object created from the datamodel.
+ * @return computeResourceId
+ * Returns a server-side generated airavata compute resource globally unique identifier.
+ */
+ @Override
+ public String registerComputeResource(ComputeResourceDescription computeResourceDescription) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+ return null;
+ }
+
+ /**
+ * Fetch the given Compute Resource.
+ *
+ * @param computeResourceId The identifier for the requested compute resource
+ * @return computeResourceDescription
+ * Compute Resource Object created from the datamodel..
+ */
+ @Override
+ public ComputeResourceDescription getComputeResource(String computeResourceId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+ return null;
+ }
+
+ /**
+ * Update a Compute Resource.
+ *
+ * @param computeResourceId The identifier for the requested compute resource to be updated.
+ * @param computeResourceDescription Compute Resource Object created from the datamodel.
+ * @return status
+ * Returns a success/failure of the update.
+ */
+ @Override
+ public boolean updateComputeResource(String computeResourceId, ComputeResourceDescription computeResourceDescription) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+ return false;
+ }
+
+ /**
+ * Delete a Compute Resource.
+ *
+ * @param computeResourceId The identifier for the requested compute resource to be deleted.
+ * @return status
+ * Returns a success/failure of the deletion.
+ */
+ @Override
+ public boolean deleteComputeResource(String computeResourceId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+ return false;
+ }
+
}
http://git-wip-us.apache.org/repos/asf/airavata/blob/53d62d15/airavata-api/thrift-interface-descriptions/airavataAPI.thrift
----------------------------------------------------------------------
diff --git a/airavata-api/thrift-interface-descriptions/airavataAPI.thrift b/airavata-api/thrift-interface-descriptions/airavataAPI.thrift
index fff9bc8..0af4a6c 100644
--- a/airavata-api/thrift-interface-descriptions/airavataAPI.thrift
+++ b/airavata-api/thrift-interface-descriptions/airavataAPI.thrift
@@ -790,7 +790,7 @@ service Airavata {
*
*/
- /**
+/**
* Register a Compute Resource.
*
* @param computeResourceDescription
@@ -806,7 +806,7 @@ service Airavata {
2: airavataErrors.AiravataClientException ace,
3: airavataErrors.AiravataSystemException ase)
- /**
+/**
* Fetch the given Compute Resource.
*
* @param computeResourceId
@@ -821,7 +821,7 @@ service Airavata {
2: airavataErrors.AiravataClientException ace,
3: airavataErrors.AiravataSystemException ase)
- /**
+/**
* Update a Compute Resource.
*
* @param computeResourceId
@@ -840,7 +840,7 @@ service Airavata {
2: airavataErrors.AiravataClientException ace,
3: airavataErrors.AiravataSystemException ase)
- /**
+/**
* Delete a Compute Resource.
*
* @param computeResourceId