airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [12/13] git commit: Adding API Methods to create and fetch basic experiment status - AIRAVATA-991
Date Tue, 25 Feb 2014 21:22:39 GMT
Adding API Methods to create and fetch basic experiment status - AIRAVATA-991


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

Branch: refs/heads/master
Commit: 5f6d80a83cbee988ce23ea58070b0ff4b9c86f51
Parents: 605ffaa
Author: Suresh Marru <smarru@apache.org>
Authored: Tue Feb 25 16:22:11 2014 -0500
Committer: Suresh Marru <smarru@apache.org>
Committed: Tue Feb 25 16:22:11 2014 -0500

----------------------------------------------------------------------
 .../server/handler/AiravataServerHandler.java   |   63 +-
 .../java/org/apache/airavata/api/Airavata.java  | 5389 ++++++++++++------
 .../airavata/model/workspace/Gateway.java       |  496 ++
 .../apache/airavata/model/workspace/Group.java  |  503 ++
 .../airavata/model/workspace/Project.java       | 1099 ++++
 .../apache/airavata/model/workspace/User.java   |  557 ++
 .../workspace/experiment/ActionableGroup.java   |   70 +
 .../experiment/AdvancedInputDataHandling.java   |  706 +++
 .../experiment/AdvancedOutputDataHandling.java  |  609 ++
 .../workspace/experiment/ApplicationStatus.java |  500 ++
 .../ComputationalResourceScheduling.java        | 1184 ++++
 .../workspace/experiment/CorrectiveAction.java  |   64 +
 .../workspace/experiment/DataObjectType.java    |  711 +++
 .../experiment/DataTransferDetails.java         |  706 +++
 .../workspace/experiment/ErrorCategory.java     |   79 +
 .../workspace/experiment/ErrorDetails.java      | 1309 +++++
 .../model/workspace/experiment/Experiment.java  | 2416 ++++++++
 .../workspace/experiment/ExperimentState.java   |   82 +
 .../workspace/experiment/ExperimentStatus.java  |  516 ++
 .../model/workspace/experiment/JobDetails.java  | 1071 ++++
 .../model/workspace/experiment/JobState.java    |   82 +
 .../model/workspace/experiment/JobStatus.java   |  516 ++
 .../experiment/QualityOfServiceParams.java      |  607 ++
 .../model/workspace/experiment/TaskDetails.java | 1921 +++++++
 .../model/workspace/experiment/TaskState.java   |   91 +
 .../model/workspace/experiment/TaskStatus.java  |  516 ++
 .../workspace/experiment/TransferState.java     |   82 +
 .../workspace/experiment/TransferStatus.java    |  516 ++
 .../experiment/UserConfigurationData.java       | 1025 ++++
 .../experiment/WorkflowNodeDetails.java         | 1337 +++++
 .../workspace/experiment/WorkflowNodeState.java |   73 +
 .../experiment/WorkflowNodeStatus.java          |  516 ++
 .../experiment/experimentModelConstants.java    |   59 +
 .../airavataAPI.thrift                          |   83 +-
 .../airavataErrors.thrift                       |    1 +
 35 files changed, 23644 insertions(+), 1911 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/5f6d80a8/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 f0e7081..5319b18 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
@@ -26,10 +26,11 @@ import org.apache.airavata.api.error.AiravataClientException;
 import org.apache.airavata.api.error.AiravataSystemException;
 import org.apache.airavata.api.error.ExperimentNotFoundException;
 import org.apache.airavata.api.error.InvalidRequestException;
-import org.apache.airavata.model.workspace.experiment.Experiment;
-import org.apache.airavata.model.workspace.experiment.ExperimentStatus;
+import org.apache.airavata.model.workspace.experiment.*;
 import org.apache.thrift.TException;
 
+import java.util.List;
+
 public class AiravataServerHandler implements Airavata.Iface {
 
     /**
@@ -90,10 +91,11 @@ public class AiravataServerHandler implements Airavata.Iface {
      *                                                                   rather an Airavata
Administrator will be notified to take corrective action.
      */
     @Override
-    public Experiment getBasicExperiment(String airavataExperimentId) throws InvalidRequestException,
ExperimentNotFoundException, AiravataClientException, AiravataSystemException, TException
{
+    public Experiment getExperiment(String airavataExperimentId) throws InvalidRequestException,
ExperimentNotFoundException, AiravataClientException, AiravataSystemException, TException
{
         return null;
     }
 
+
     /**
      * Configure a previously created experiment with required inputs, scheduling and other
quality of service
      * parameters. This method only updates the experiment object within the registry. The
experiment has to be launched
@@ -123,6 +125,16 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     }
 
+    @Override
+    public void updateExperimentConfiguration(String airavataExperimentId, UserConfigurationData
userConfiguration) throws TException {
+
+    }
+
+    @Override
+    public void updateResourceScheduleing(String airavataExperimentId, ComputationalResourceScheduling
resourceScheduling) throws TException {
+
+    }
+
     /**
      * Fetch the previously configured experiment configuration information.
      *
@@ -149,6 +161,16 @@ public class AiravataServerHandler implements Airavata.Iface {
         return null;
     }
 
+    @Override
+    public List<DataObjectType> getExperimentOutputs(String airavataExperimentId) throws
TException {
+        return null;
+    }
+
+    @Override
+    public TaskStatus getJobStatus(String resourceJobId) throws TException {
+        return null;
+    }
+
     /**
      * Launch a previously created and configured experiment. Airavata Server will then start
processing the request and appropriate
      * notifications and intermediate and output data will be subsequently available for
this experiment.
@@ -185,41 +207,6 @@ public class AiravataServerHandler implements Airavata.Iface {
     }
 
     /**
-     * Configure and Launch a previously created experiment with required inputs, scheduling,
security and other quality of service
-     * parameters. This method also launches the experiment after it is configured. If you
would like to configure only
-     * and launch at a later time or partially configure then ConfigureExperiment should
be used.
-     *
-     * @param airavataExperimentId   The identifier for the requested experiment. This is
returned during the create experiment step.
-     * @param experiment
-     * @param airavataCredStoreToken :
-     *                               A requirement to execute experiments within Airavata
is to first register the targeted remote computational account
-     *                               credentials with Airavata Credential Store. The administrative
API (related to credential store) will return a
-     *                               generated token associated with the registered credentials.
The client has to security posses this token id and is
-     *                               required to pass it to Airavata Server for all execution
requests.
-     *                               Note: At this point only the credential store token
is required so the string is directly passed here. In future if
-     *                               if more security credentials are enables, then the structure
ExecutionSecurityParameters should be used.
-     * @return The server-side generated experiment GUID.
-     * @throws org.apache.airavata.api.error.InvalidRequestException For any incorrect forming
of the request itself.
-     * @throws org.apache.airavata.api.error.AiravataClientException The following list of
exceptions are thrown which Airavata Client can take corrective actions to resolve:
-     *                                                               <p/>
-     *                                                               UNKNOWN_GATEWAY_ID -
If a Gateway is not registered with Airavata as a one time administrative
-     *                                                               step, then Airavata
Registry will not have a provenance area setup. The client has to follow
-     *                                                               gateway registration
steps and retry this request.
-     *                                                               <p/>
-     *                                                               AUTHENTICATION_FAILURE
- How Authentication will be implemented is yet to be determined.
-     *                                                               For now this is a place
holder.
-     *                                                               <p/>
-     *                                                               INVALID_AUTHORIZATION
- This will throw an authorization exception. When a more robust security hand-shake
-     *                                                               is implemented, the
authorization will be more substantial.
-     * @throws org.apache.airavata.api.error.AiravataSystemException This exception will
be thrown for any Airavata Server side issues and if the problem cannot be corrected by the
client
-     *                                                               rather an Airavata Administrator
will be notified to take corrective action.
-     */
-    @Override
-    public String updateAndLaunchExperiment(String airavataExperimentId, Experiment experiment,
String airavataCredStoreToken) throws InvalidRequestException, ExperimentNotFoundException,
AiravataClientException, AiravataSystemException, TException {
-        return null;
-    }
-
-    /**
      * Clone an specified experiment with a new name. A copy of the experiment configuration
is made and is persisted with new metadata.
      * The client has to subsequently update this configuration if needed and launch the
cloned experiment.
      *


Mime
View raw message