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/07 05:01:10 UTC

[5/5] git commit: Adding job manager and data movement API functions - AIRAVATA-1296

Adding job manager and data movement API functions - AIRAVATA-1296


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

Branch: refs/heads/master
Commit: 152acbf208ebb9e495360b492fbeba3a30f01f83
Parents: c853ffd
Author: Suresh Marru <sm...@apache.org>
Authored: Sun Jul 6 23:00:59 2014 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Sun Jul 6 23:00:59 2014 -0400

----------------------------------------------------------------------
 .../server/handler/AiravataServerHandler.java   |    77 +-
 .../java/org/apache/airavata/api/Airavata.java  | 13147 +++++++++++++----
 .../src/main/resources/lib/Airavata.cpp         |  3093 +++-
 .../src/main/resources/lib/Airavata.h           |  1265 +-
 .../resources/lib/Airavata_server.skeleton.cpp  |    25 +
 .../resources/lib/Airavata/API/Airavata.php     |  1590 ++
 .../airavataAPI.thrift                          |   128 +-
 7 files changed, 15470 insertions(+), 3855 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/152acbf2/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 322ab46..875a1b4 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,7 +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.appcatalog.computeresource.*;
 import org.apache.airavata.model.error.AiravataClientException;
 import org.apache.airavata.model.error.AiravataErrorType;
 import org.apache.airavata.model.error.AiravataSystemException;
@@ -1537,4 +1537,79 @@ public class AiravataServerHandler implements Airavata.Iface, Watcher {
         return false;
     }
 
+    /**
+     * Add a Local Job Submission details to a compute resource
+     * App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces.
+     *
+     * @param computeResourceId The identifier of the compute resource to which JobSubmission protocol to be added
+     * @param priorityOrder     Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero.
+     * @param localSubmission   The LOCALSubmission object to be added to the resource.
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean addLocalSubmissionDetails(String computeResourceId, int priorityOrder, LOCALSubmission localSubmission) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+        return false;
+    }
+
+    /**
+     * Add a SSH Job Submission details to a compute resource
+     * App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces.
+     *
+     * @param computeResourceId The identifier of the compute resource to which JobSubmission protocol to be added
+     * @param priorityOrder     Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero.
+     * @param sshJobSubmission  The SSHJobSubmission object to be added to the resource.
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean addSSHJobSubmissionDetails(String computeResourceId, int priorityOrder, SSHJobSubmission sshJobSubmission) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+        return false;
+    }
+
+    /**
+     * Add a Local data moevement details to a compute resource
+     * App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces.
+     *
+     * @param computeResourceId The identifier of the compute resource to which JobSubmission protocol to be added
+     * @param priorityOrder     Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero.
+     * @param localDataMovement The LOCALDataMovement object to be added to the resource.
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean addLocalDataMovementDetails(String computeResourceId, int priorityOrder, LOCALDataMovement localDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+        return false;
+    }
+
+    /**
+     * Add a SCP data moevement details to a compute resource
+     * App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces.
+     *
+     * @param computeResourceId The identifier of the compute resource to which JobSubmission protocol to be added
+     * @param priorityOrder     Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero.
+     * @param scpDataMovement   The SCPDataMovement object to be added to the resource.
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean addSCPDataMovementDetails(String computeResourceId, int priorityOrder, SCPDataMovement scpDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+        return false;
+    }
+
+    /**
+     * Add a GridFTP data moevement details to a compute resource
+     * App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces.
+     *
+     * @param computeResourceId   The identifier of the compute resource to which JobSubmission protocol to be added
+     * @param priorityOrder       Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero.
+     * @param gridFTPDataMovement The GridFTPDataMovement object to be added to the resource.
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean addGridFTPDataMovementDetails(String computeResourceId, int priorityOrder, GridFTPDataMovement gridFTPDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+        return false;
+    }
+
 }