airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [7/7] git commit: Adding update methods to change priorities - AIRAVATA-1296
Date Mon, 07 Jul 2014 03:55:54 GMT
Adding update methods to change priorities - AIRAVATA-1296


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

Branch: refs/heads/master
Commit: f7008b97ce521bcae825a901a70e635c832ceafb
Parents: 8808aaa
Author: Suresh Marru <smarru@apache.org>
Authored: Sun Jul 6 23:55:41 2014 -0400
Committer: Suresh Marru <smarru@apache.org>
Committed: Sun Jul 6 23:55:41 2014 -0400

----------------------------------------------------------------------
 .../server/handler/AiravataServerHandler.java   |   147 +-
 .../java/org/apache/airavata/api/Airavata.java  | 37175 +++++++++++------
 .../src/main/resources/lib/Airavata.cpp         |  7613 +++-
 .../src/main/resources/lib/Airavata.h           |  2023 +-
 .../resources/lib/Airavata_server.skeleton.cpp  |    55 +
 .../resources/lib/Airavata/API/Airavata.php     |  7741 +++-
 .../airavataAPI.thrift                          |   203 +-
 7 files changed, 39150 insertions(+), 15807 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/f7008b97/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 3d437f1..5a00b4a 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
@@ -1603,7 +1603,20 @@ public class AiravataServerHandler implements Airavata.Iface, Watcher
{
         }
     }
 
-	private void addJobSubmissionInterface(ComputeResource computeResource,
+    /**
+     * Update the given Local Job Submission details
+     *
+     * @param jobSubmissionInterfaceId The identifier of the JobSubmission Interface to be
updated.
+     * @param localSubmission          The LOCALSubmission object to be updated.
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean updateLocalSubmissionDetails(String jobSubmissionInterfaceId, LOCALSubmission
localSubmission) throws InvalidRequestException, AiravataClientException, AiravataSystemException,
TException {
+        return false;
+    }
+
+    private void addJobSubmissionInterface(ComputeResource computeResource,
 			String computeResourceId, String jobSubmissionInterfaceId,
 			JobSubmissionProtocol protocolType, int priorityOrder)
 			throws AppCatalogException {
@@ -1642,6 +1655,19 @@ public class AiravataServerHandler implements Airavata.Iface, Watcher
{
     }
 
     /**
+     * Update the given SSH Job Submission details
+     *
+     * @param jobSubmissionInterfaceId The identifier of the JobSubmission Interface to be
updated.
+     * @param sshJobSubmission         The SSHJobSubmission object to be updated.
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean updateSSHJobSubmissionDetails(String jobSubmissionInterfaceId, 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.
      *
@@ -1667,8 +1693,21 @@ public class AiravataServerHandler implements Airavata.Iface, Watcher
{
             throw exception;
         }
     }
-    
-	private void addDataMovementInterface(ComputeResource computeResource,
+
+    /**
+     * Update the given Local data movement details
+     *
+     * @param jobSubmissionInterfaceId The identifier of the JobSubmission Interface to be
updated.
+     * @param localDataMovement        The LOCALDataMovement object to be updated.
+     * @return status
+     * Returns a success/failure of the update.
+     */
+    @Override
+    public boolean updateLocalDataMovementDetails(String jobSubmissionInterfaceId, LOCALDataMovement
localDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException,
TException {
+        return false;
+    }
+
+    private void addDataMovementInterface(ComputeResource computeResource,
 			String computeResourceId, String dataMovementInterfaceId,
 			DataMovementProtocol protocolType, int priorityOrder)
 			throws AppCatalogException {
@@ -1707,6 +1746,20 @@ public class AiravataServerHandler implements Airavata.Iface, Watcher
{
     }
 
     /**
+     * Update the given scp data movement details
+     * App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces.
+     *
+     * @param jobSubmissionInterfaceId The identifier of the JobSubmission Interface to be
updated.
+     * @param scpDataMovement          The SCPDataMovement object to be updated.
+     * @return status
+     * Returns a success/failure of the update.
+     */
+    @Override
+    public boolean updateSCPDataMovementDetails(String jobSubmissionInterfaceId, 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.
      *
@@ -1733,4 +1786,92 @@ public class AiravataServerHandler implements Airavata.Iface, Watcher
{
         }
     }
 
+    /**
+     * Update the given GridFTP data movement details to a compute resource
+     * App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces.
+     *
+     * @param jobSubmissionInterfaceId The identifier of the JobSubmission Interface to be
updated.
+     * @param gridFTPDataMovement      The GridFTPDataMovement object to be updated.
+     * @return status
+     * Returns a success/failure of the updation.
+     */
+    @Override
+    public boolean updateGridFTPDataMovementDetails(String jobSubmissionInterfaceId, GridFTPDataMovement
gridFTPDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException,
TException {
+        return false;
+    }
+
+    /**
+     * Change the priority of a given job submisison interface
+     *
+     * @param jobSubmissionInterfaceId The identifier of the JobSubmission Interface to be
changed
+     * @param newPriorityOrder
+     * @return status
+     * Returns a success/failure of the change.
+     */
+    @Override
+    public boolean changeJobSubmissionPriority(String jobSubmissionInterfaceId, int newPriorityOrder)
throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException
{
+        return false;
+    }
+
+    /**
+     * Change the priority of a given data movement interface
+     *
+     * @param dataMovementInterfaceId The identifier of the DataMovement Interface to be
changed
+     * @param newPriorityOrder
+     * @return status
+     * Returns a success/failure of the change.
+     */
+    @Override
+    public boolean changeDataMovementPriority(String dataMovementInterfaceId, int newPriorityOrder)
throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException
{
+        return false;
+    }
+
+    /**
+     * Change the priorities of a given set of job submission interfaces
+     *
+     * @param jobSubmissionPriorityMap A Map of identifiers of the JobSubmission Interfaces
and thier associated priorities to be set.
+     * @return status
+     * Returns a success/failure of the changes.
+     */
+    @Override
+    public boolean changeJobSubmissionPriorities(Map<String, Integer> jobSubmissionPriorityMap)
throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException
{
+        return false;
+    }
+
+    /**
+     * Change the priorities of a given set of data movement interfaces
+     *
+     * @param dataMovementPriorityMap A Map of identifiers of the DataMovement Interfaces
and thier associated priorities to be set.
+     * @return status
+     * Returns a success/failure of the changes.
+     */
+    @Override
+    public boolean changeDataMovementPriorities(Map<String, Integer> dataMovementPriorityMap)
throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException
{
+        return false;
+    }
+
+    /**
+     * Delete a given job submisison interface
+     *
+     * @param jobSubmissionInterfaceId The identifier of the JobSubmission Interface to be
changed
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean deleteJobSubmissionInterface(String jobSubmissionInterfaceId) throws InvalidRequestException,
AiravataClientException, AiravataSystemException, TException {
+        return false;
+    }
+
+    /**
+     * Delete a given data movement interface
+     *
+     * @param dataMovementInterfaceId The identifier of the DataMovement Interface to be
changed
+     * @return status
+     * Returns a success/failure of the deletion.
+     */
+    @Override
+    public boolean deleteDataMovementInterface(String dataMovementInterfaceId) throws InvalidRequestException,
AiravataClientException, AiravataSystemException, TException {
+        return false;
+    }
+
 }


Mime
View raw message