airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject [19/44] git commit: adding delete queue method
Date Wed, 05 Nov 2014 18:30:07 GMT
adding delete queue method


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/9cf6d0d8
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/9cf6d0d8
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/9cf6d0d8

Branch: refs/heads/gfac_appcatalog_int
Commit: 9cf6d0d8bd661e72c28e988c6f00737fbf221493
Parents: 08fff2c
Author: Chathuri Wimalasena <kamalasini@gmail.com>
Authored: Tue Nov 4 13:40:26 2014 -0500
Committer: Chathuri Wimalasena <kamalasini@gmail.com>
Committed: Tue Nov 4 13:40:26 2014 -0500

----------------------------------------------------------------------
 .../server/handler/AiravataServerHandler.java   |    15 +
 .../java/org/apache/airavata/api/Airavata.java  | 21732 +++++++++--------
 .../main/resources/lib/airavata/Airavata.cpp    |   375 +
 .../src/main/resources/lib/airavata/Airavata.h  |   159 +
 .../lib/airavata/Airavata_server.skeleton.cpp   |     5 +
 .../resources/lib/Airavata/API/Airavata.php     |   292 +
 .../airavataAPI.thrift                          |     5 +
 .../appcatalog/cpi/ComputeResource.java         |     2 +
 .../catalog/data/impl/ComputeResourceImpl.java  |    16 +-
 .../data/resources/BatchQueueResource.java      |    10 +-
 10 files changed, 12379 insertions(+), 10232 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/9cf6d0d8/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 9eb9c23..6f23d6c 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
@@ -2505,6 +2505,21 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
+    @Override
+    public boolean deleteBatchQueue(String computeResourceId, String queueName) throws InvalidRequestException,
AiravataClientException, AiravataSystemException, TException {
+        try {
+            appCatalog = AppCatalogFactory.getAppCatalog();
+            appCatalog.getComputeResource().removeBatchQueue(computeResourceId, queueName);
+            return true;
+        } catch (AppCatalogException e) {
+            logger.errorId(computeResourceId, "Error while deleting batch queue...", e);
+            AiravataSystemException exception = new AiravataSystemException();
+            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
+            exception.setMessage("Error while deleting batch queue. More info : " + e.getMessage());
+            throw exception;
+        }
+    }
+
     /**
      * Register a Gateway Resource Profile.
      *


Mime
View raw message