You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ch...@apache.org on 2015/03/02 21:27:49 UTC
[3/7] airavata git commit: adding CRUD operations to gateway -
AIRAVATA-1608, AIRAVATA-1604
http://git-wip-us.apache.org/repos/asf/airavata/blob/658e5e9e/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php
index 019627c..ebc2b25 100644
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php
+++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php
@@ -18,6 +18,12 @@ use Thrift\Exception\TApplicationException;
interface AiravataIf {
public function getAPIVersion();
+ public function addGateway(\Airavata\Model\Workspace\Gateway $gateway);
+ public function updateGateway($gatewayId, \Airavata\Model\Workspace\Gateway $updatedGateway);
+ public function getGateway($gatewayId);
+ public function deleteGateway($gatewayId);
+ public function getAllGateways();
+ public function isGatewayExist($gatewayId);
public function createProject(\Airavata\Model\Workspace\Project $project);
public function updateProject($projectId, \Airavata\Model\Workspace\Project $updatedProject);
public function getProject($projectId);
@@ -194,34 +200,34 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("getAPIVersion failed: unknown result");
}
- public function createProject(\Airavata\Model\Workspace\Project $project)
+ public function addGateway(\Airavata\Model\Workspace\Gateway $gateway)
{
- $this->send_createProject($project);
- return $this->recv_createProject();
+ $this->send_addGateway($gateway);
+ return $this->recv_addGateway();
}
- public function send_createProject(\Airavata\Model\Workspace\Project $project)
+ public function send_addGateway(\Airavata\Model\Workspace\Gateway $gateway)
{
- $args = new \Airavata\API\Airavata_createProject_args();
- $args->project = $project;
+ $args = new \Airavata\API\Airavata_addGateway_args();
+ $args->gateway = $gateway;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'createProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'addGateway', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('createProject', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('addGateway', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_createProject()
+ public function recv_addGateway()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_createProject_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_addGateway_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -235,7 +241,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_createProject_result();
+ $result = new \Airavata\API\Airavata_addGateway_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -251,38 +257,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("createProject failed: unknown result");
+ throw new \Exception("addGateway failed: unknown result");
}
- public function updateProject($projectId, \Airavata\Model\Workspace\Project $updatedProject)
+ public function updateGateway($gatewayId, \Airavata\Model\Workspace\Gateway $updatedGateway)
{
- $this->send_updateProject($projectId, $updatedProject);
- $this->recv_updateProject();
+ $this->send_updateGateway($gatewayId, $updatedGateway);
+ $this->recv_updateGateway();
}
- public function send_updateProject($projectId, \Airavata\Model\Workspace\Project $updatedProject)
+ public function send_updateGateway($gatewayId, \Airavata\Model\Workspace\Gateway $updatedGateway)
{
- $args = new \Airavata\API\Airavata_updateProject_args();
- $args->projectId = $projectId;
- $args->updatedProject = $updatedProject;
+ $args = new \Airavata\API\Airavata_updateGateway_args();
+ $args->gatewayId = $gatewayId;
+ $args->updatedGateway = $updatedGateway;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'updateProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'updateGateway', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('updateProject', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('updateGateway', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_updateProject()
+ public function recv_updateGateway()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateProject_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateGateway_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -296,7 +302,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_updateProject_result();
+ $result = new \Airavata\API\Airavata_updateGateway_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -309,40 +315,37 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- if ($result->pnfe !== null) {
- throw $result->pnfe;
- }
return;
}
- public function getProject($projectId)
+ public function getGateway($gatewayId)
{
- $this->send_getProject($projectId);
- return $this->recv_getProject();
+ $this->send_getGateway($gatewayId);
+ return $this->recv_getGateway();
}
- public function send_getProject($projectId)
+ public function send_getGateway($gatewayId)
{
- $args = new \Airavata\API\Airavata_getProject_args();
- $args->projectId = $projectId;
+ $args = new \Airavata\API\Airavata_getGateway_args();
+ $args->gatewayId = $gatewayId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getGateway', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getProject', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getGateway', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getProject()
+ public function recv_getGateway()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getProject_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getGateway_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -356,7 +359,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getProject_result();
+ $result = new \Airavata\API\Airavata_getGateway_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -372,40 +375,37 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- if ($result->pnfe !== null) {
- throw $result->pnfe;
- }
- throw new \Exception("getProject failed: unknown result");
+ throw new \Exception("getGateway failed: unknown result");
}
- public function getAllUserProjects($userName)
+ public function deleteGateway($gatewayId)
{
- $this->send_getAllUserProjects($userName);
- return $this->recv_getAllUserProjects();
+ $this->send_deleteGateway($gatewayId);
+ return $this->recv_deleteGateway();
}
- public function send_getAllUserProjects($userName)
+ public function send_deleteGateway($gatewayId)
{
- $args = new \Airavata\API\Airavata_getAllUserProjects_args();
- $args->userName = $userName;
+ $args = new \Airavata\API\Airavata_deleteGateway_args();
+ $args->gatewayId = $gatewayId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getAllUserProjects', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'deleteGateway', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllUserProjects', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('deleteGateway', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllUserProjects()
+ public function recv_deleteGateway()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserProjects_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_deleteGateway_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -419,7 +419,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllUserProjects_result();
+ $result = new \Airavata\API\Airavata_deleteGateway_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -435,38 +435,36 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getAllUserProjects failed: unknown result");
+ throw new \Exception("deleteGateway failed: unknown result");
}
- public function searchProjectsByProjectName($userName, $projectName)
+ public function getAllGateways()
{
- $this->send_searchProjectsByProjectName($userName, $projectName);
- return $this->recv_searchProjectsByProjectName();
+ $this->send_getAllGateways();
+ return $this->recv_getAllGateways();
}
- public function send_searchProjectsByProjectName($userName, $projectName)
+ public function send_getAllGateways()
{
- $args = new \Airavata\API\Airavata_searchProjectsByProjectName_args();
- $args->userName = $userName;
- $args->projectName = $projectName;
+ $args = new \Airavata\API\Airavata_getAllGateways_args();
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getAllGateways', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchProjectsByProjectName', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllGateways', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchProjectsByProjectName()
+ public function recv_getAllGateways()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectName_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllGateways_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -480,7 +478,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchProjectsByProjectName_result();
+ $result = new \Airavata\API\Airavata_getAllGateways_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -496,38 +494,37 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchProjectsByProjectName failed: unknown result");
+ throw new \Exception("getAllGateways failed: unknown result");
}
- public function searchProjectsByProjectDesc($userName, $description)
+ public function isGatewayExist($gatewayId)
{
- $this->send_searchProjectsByProjectDesc($userName, $description);
- return $this->recv_searchProjectsByProjectDesc();
+ $this->send_isGatewayExist($gatewayId);
+ return $this->recv_isGatewayExist();
}
- public function send_searchProjectsByProjectDesc($userName, $description)
+ public function send_isGatewayExist($gatewayId)
{
- $args = new \Airavata\API\Airavata_searchProjectsByProjectDesc_args();
- $args->userName = $userName;
- $args->description = $description;
+ $args = new \Airavata\API\Airavata_isGatewayExist_args();
+ $args->gatewayId = $gatewayId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'isGatewayExist', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchProjectsByProjectDesc', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('isGatewayExist', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchProjectsByProjectDesc()
+ public function recv_isGatewayExist()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectDesc_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_isGatewayExist_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -541,7 +538,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchProjectsByProjectDesc_result();
+ $result = new \Airavata\API\Airavata_isGatewayExist_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -557,38 +554,37 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchProjectsByProjectDesc failed: unknown result");
+ throw new \Exception("isGatewayExist failed: unknown result");
}
- public function searchExperimentsByName($userName, $expName)
+ public function createProject(\Airavata\Model\Workspace\Project $project)
{
- $this->send_searchExperimentsByName($userName, $expName);
- return $this->recv_searchExperimentsByName();
+ $this->send_createProject($project);
+ return $this->recv_createProject();
}
- public function send_searchExperimentsByName($userName, $expName)
+ public function send_createProject(\Airavata\Model\Workspace\Project $project)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByName_args();
- $args->userName = $userName;
- $args->expName = $expName;
+ $args = new \Airavata\API\Airavata_createProject_args();
+ $args->project = $project;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'createProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByName', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('createProject', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByName()
+ public function recv_createProject()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByName_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_createProject_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -602,7 +598,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByName_result();
+ $result = new \Airavata\API\Airavata_createProject_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -618,38 +614,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByName failed: unknown result");
+ throw new \Exception("createProject failed: unknown result");
}
- public function searchExperimentsByDesc($userName, $description)
+ public function updateProject($projectId, \Airavata\Model\Workspace\Project $updatedProject)
{
- $this->send_searchExperimentsByDesc($userName, $description);
- return $this->recv_searchExperimentsByDesc();
+ $this->send_updateProject($projectId, $updatedProject);
+ $this->recv_updateProject();
}
- public function send_searchExperimentsByDesc($userName, $description)
+ public function send_updateProject($projectId, \Airavata\Model\Workspace\Project $updatedProject)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByDesc_args();
- $args->userName = $userName;
- $args->description = $description;
+ $args = new \Airavata\API\Airavata_updateProject_args();
+ $args->projectId = $projectId;
+ $args->updatedProject = $updatedProject;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'updateProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByDesc', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('updateProject', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByDesc()
+ public function recv_updateProject()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByDesc_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateProject_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -663,13 +659,10 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByDesc_result();
+ $result = new \Airavata\API\Airavata_updateProject_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
- if ($result->success !== null) {
- return $result->success;
- }
if ($result->ire !== null) {
throw $result->ire;
}
@@ -679,38 +672,40 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByDesc failed: unknown result");
+ if ($result->pnfe !== null) {
+ throw $result->pnfe;
+ }
+ return;
}
- public function searchExperimentsByApplication($userName, $applicationId)
+ public function getProject($projectId)
{
- $this->send_searchExperimentsByApplication($userName, $applicationId);
- return $this->recv_searchExperimentsByApplication();
+ $this->send_getProject($projectId);
+ return $this->recv_getProject();
}
- public function send_searchExperimentsByApplication($userName, $applicationId)
+ public function send_getProject($projectId)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByApplication_args();
- $args->userName = $userName;
- $args->applicationId = $applicationId;
+ $args = new \Airavata\API\Airavata_getProject_args();
+ $args->projectId = $projectId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByApplication', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByApplication', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getProject', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByApplication()
+ public function recv_getProject()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByApplication_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getProject_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -724,7 +719,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByApplication_result();
+ $result = new \Airavata\API\Airavata_getProject_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -740,38 +735,40 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByApplication failed: unknown result");
+ if ($result->pnfe !== null) {
+ throw $result->pnfe;
+ }
+ throw new \Exception("getProject failed: unknown result");
}
- public function searchExperimentsByStatus($userName, $experimentState)
+ public function getAllUserProjects($userName)
{
- $this->send_searchExperimentsByStatus($userName, $experimentState);
- return $this->recv_searchExperimentsByStatus();
+ $this->send_getAllUserProjects($userName);
+ return $this->recv_getAllUserProjects();
}
- public function send_searchExperimentsByStatus($userName, $experimentState)
+ public function send_getAllUserProjects($userName)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args();
+ $args = new \Airavata\API\Airavata_getAllUserProjects_args();
$args->userName = $userName;
- $args->experimentState = $experimentState;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getAllUserProjects', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByStatus', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllUserProjects', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByStatus()
+ public function recv_getAllUserProjects()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByStatus_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserProjects_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -785,7 +782,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByStatus_result();
+ $result = new \Airavata\API\Airavata_getAllUserProjects_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -801,39 +798,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByStatus failed: unknown result");
+ throw new \Exception("getAllUserProjects failed: unknown result");
}
- public function searchExperimentsByCreationTime($userName, $fromTime, $toTime)
+ public function searchProjectsByProjectName($userName, $projectName)
{
- $this->send_searchExperimentsByCreationTime($userName, $fromTime, $toTime);
- return $this->recv_searchExperimentsByCreationTime();
+ $this->send_searchProjectsByProjectName($userName, $projectName);
+ return $this->recv_searchProjectsByProjectName();
}
- public function send_searchExperimentsByCreationTime($userName, $fromTime, $toTime)
+ public function send_searchProjectsByProjectName($userName, $projectName)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args();
+ $args = new \Airavata\API\Airavata_searchProjectsByProjectName_args();
$args->userName = $userName;
- $args->fromTime = $fromTime;
- $args->toTime = $toTime;
+ $args->projectName = $projectName;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTime', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByCreationTime', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchProjectsByProjectName', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByCreationTime()
+ public function recv_searchProjectsByProjectName()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByCreationTime_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectName_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -847,7 +843,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByCreationTime_result();
+ $result = new \Airavata\API\Airavata_searchProjectsByProjectName_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -863,37 +859,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByCreationTime failed: unknown result");
+ throw new \Exception("searchProjectsByProjectName failed: unknown result");
}
- public function getAllExperimentsInProject($projectId)
+ public function searchProjectsByProjectDesc($userName, $description)
{
- $this->send_getAllExperimentsInProject($projectId);
- return $this->recv_getAllExperimentsInProject();
+ $this->send_searchProjectsByProjectDesc($userName, $description);
+ return $this->recv_searchProjectsByProjectDesc();
}
- public function send_getAllExperimentsInProject($projectId)
+ public function send_searchProjectsByProjectDesc($userName, $description)
{
- $args = new \Airavata\API\Airavata_getAllExperimentsInProject_args();
- $args->projectId = $projectId;
+ $args = new \Airavata\API\Airavata_searchProjectsByProjectDesc_args();
+ $args->userName = $userName;
+ $args->description = $description;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllExperimentsInProject', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchProjectsByProjectDesc', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllExperimentsInProject()
+ public function recv_searchProjectsByProjectDesc()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllExperimentsInProject_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectDesc_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -907,7 +904,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllExperimentsInProject_result();
+ $result = new \Airavata\API\Airavata_searchProjectsByProjectDesc_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -923,40 +920,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- if ($result->pnfe !== null) {
- throw $result->pnfe;
- }
- throw new \Exception("getAllExperimentsInProject failed: unknown result");
+ throw new \Exception("searchProjectsByProjectDesc failed: unknown result");
}
- public function getAllUserExperiments($userName)
+ public function searchExperimentsByName($userName, $expName)
{
- $this->send_getAllUserExperiments($userName);
- return $this->recv_getAllUserExperiments();
+ $this->send_searchExperimentsByName($userName, $expName);
+ return $this->recv_searchExperimentsByName();
}
- public function send_getAllUserExperiments($userName)
+ public function send_searchExperimentsByName($userName, $expName)
{
- $args = new \Airavata\API\Airavata_getAllUserExperiments_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByName_args();
$args->userName = $userName;
+ $args->expName = $expName;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getAllUserExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllUserExperiments', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByName', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllUserExperiments()
+ public function recv_searchExperimentsByName()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserExperiments_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByName_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -970,7 +965,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllUserExperiments_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByName_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -986,37 +981,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getAllUserExperiments failed: unknown result");
+ throw new \Exception("searchExperimentsByName failed: unknown result");
}
- public function createExperiment(\Airavata\Model\Workspace\Experiment\Experiment $experiment)
+ public function searchExperimentsByDesc($userName, $description)
{
- $this->send_createExperiment($experiment);
- return $this->recv_createExperiment();
+ $this->send_searchExperimentsByDesc($userName, $description);
+ return $this->recv_searchExperimentsByDesc();
}
- public function send_createExperiment(\Airavata\Model\Workspace\Experiment\Experiment $experiment)
+ public function send_searchExperimentsByDesc($userName, $description)
{
- $args = new \Airavata\API\Airavata_createExperiment_args();
- $args->experiment = $experiment;
+ $args = new \Airavata\API\Airavata_searchExperimentsByDesc_args();
+ $args->userName = $userName;
+ $args->description = $description;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'createExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('createExperiment', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByDesc', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_createExperiment()
+ public function recv_searchExperimentsByDesc()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_createExperiment_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByDesc_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1030,7 +1026,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_createExperiment_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByDesc_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -1046,37 +1042,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("createExperiment failed: unknown result");
+ throw new \Exception("searchExperimentsByDesc failed: unknown result");
}
- public function getExperiment($airavataExperimentId)
+ public function searchExperimentsByApplication($userName, $applicationId)
{
- $this->send_getExperiment($airavataExperimentId);
- return $this->recv_getExperiment();
+ $this->send_searchExperimentsByApplication($userName, $applicationId);
+ return $this->recv_searchExperimentsByApplication();
}
- public function send_getExperiment($airavataExperimentId)
+ public function send_searchExperimentsByApplication($userName, $applicationId)
{
- $args = new \Airavata\API\Airavata_getExperiment_args();
- $args->airavataExperimentId = $airavataExperimentId;
+ $args = new \Airavata\API\Airavata_searchExperimentsByApplication_args();
+ $args->userName = $userName;
+ $args->applicationId = $applicationId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByApplication', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getExperiment', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByApplication', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getExperiment()
+ public function recv_searchExperimentsByApplication()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperiment_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByApplication_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1090,7 +1087,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getExperiment_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByApplication_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -1100,47 +1097,44 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ire !== null) {
throw $result->ire;
}
- if ($result->enf !== null) {
- throw $result->enf;
- }
if ($result->ace !== null) {
throw $result->ace;
}
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getExperiment failed: unknown result");
+ throw new \Exception("searchExperimentsByApplication failed: unknown result");
}
- public function updateExperiment($airavataExperimentId, \Airavata\Model\Workspace\Experiment\Experiment $experiment)
+ public function searchExperimentsByStatus($userName, $experimentState)
{
- $this->send_updateExperiment($airavataExperimentId, $experiment);
- $this->recv_updateExperiment();
+ $this->send_searchExperimentsByStatus($userName, $experimentState);
+ return $this->recv_searchExperimentsByStatus();
}
- public function send_updateExperiment($airavataExperimentId, \Airavata\Model\Workspace\Experiment\Experiment $experiment)
+ public function send_searchExperimentsByStatus($userName, $experimentState)
{
- $args = new \Airavata\API\Airavata_updateExperiment_args();
- $args->airavataExperimentId = $airavataExperimentId;
- $args->experiment = $experiment;
+ $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args();
+ $args->userName = $userName;
+ $args->experimentState = $experimentState;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'updateExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('updateExperiment', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByStatus', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_updateExperiment()
+ public function recv_searchExperimentsByStatus()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateExperiment_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByStatus_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1154,54 +1148,55 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_updateExperiment_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByStatus_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
+ if ($result->success !== null) {
+ return $result->success;
+ }
if ($result->ire !== null) {
throw $result->ire;
}
- if ($result->enf !== null) {
- throw $result->enf;
- }
if ($result->ace !== null) {
throw $result->ace;
}
if ($result->ase !== null) {
throw $result->ase;
}
- return;
+ throw new \Exception("searchExperimentsByStatus failed: unknown result");
}
- public function updateExperimentConfiguration($airavataExperimentId, \Airavata\Model\Workspace\Experiment\UserConfigurationData $userConfiguration)
+ public function searchExperimentsByCreationTime($userName, $fromTime, $toTime)
{
- $this->send_updateExperimentConfiguration($airavataExperimentId, $userConfiguration);
- $this->recv_updateExperimentConfiguration();
+ $this->send_searchExperimentsByCreationTime($userName, $fromTime, $toTime);
+ return $this->recv_searchExperimentsByCreationTime();
}
- public function send_updateExperimentConfiguration($airavataExperimentId, \Airavata\Model\Workspace\Experiment\UserConfigurationData $userConfiguration)
+ public function send_searchExperimentsByCreationTime($userName, $fromTime, $toTime)
{
- $args = new \Airavata\API\Airavata_updateExperimentConfiguration_args();
- $args->airavataExperimentId = $airavataExperimentId;
- $args->userConfiguration = $userConfiguration;
+ $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args();
+ $args->userName = $userName;
+ $args->fromTime = $fromTime;
+ $args->toTime = $toTime;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'updateExperimentConfiguration', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTime', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('updateExperimentConfiguration', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByCreationTime', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_updateExperimentConfiguration()
+ public function recv_searchExperimentsByCreationTime()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateExperimentConfiguration_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByCreationTime_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1215,42 +1210,53 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_updateExperimentConfiguration_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByCreationTime_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
- return;
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->ire !== null) {
+ throw $result->ire;
+ }
+ if ($result->ace !== null) {
+ throw $result->ace;
+ }
+ if ($result->ase !== null) {
+ throw $result->ase;
+ }
+ throw new \Exception("searchExperimentsByCreationTime failed: unknown result");
}
- public function updateResourceScheduleing($airavataExperimentId, \Airavata\Model\Workspace\Experiment\ComputationalResourceScheduling $resourceScheduling)
+ public function getAllExperimentsInProject($projectId)
{
- $this->send_updateResourceScheduleing($airavataExperimentId, $resourceScheduling);
- $this->recv_updateResourceScheduleing();
+ $this->send_getAllExperimentsInProject($projectId);
+ return $this->recv_getAllExperimentsInProject();
}
- public function send_updateResourceScheduleing($airavataExperimentId, \Airavata\Model\Workspace\Experiment\ComputationalResourceScheduling $resourceScheduling)
+ public function send_getAllExperimentsInProject($projectId)
{
- $args = new \Airavata\API\Airavata_updateResourceScheduleing_args();
- $args->airavataExperimentId = $airavataExperimentId;
- $args->resourceScheduling = $resourceScheduling;
+ $args = new \Airavata\API\Airavata_getAllExperimentsInProject_args();
+ $args->projectId = $projectId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'updateResourceScheduleing', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('updateResourceScheduleing', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllExperimentsInProject', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_updateResourceScheduleing()
+ public function recv_getAllExperimentsInProject()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateResourceScheduleing_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllExperimentsInProject_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1264,41 +1270,56 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_updateResourceScheduleing_result();
+ $result = new \Airavata\API\Airavata_getAllExperimentsInProject_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
- return;
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->ire !== null) {
+ throw $result->ire;
+ }
+ if ($result->ace !== null) {
+ throw $result->ace;
+ }
+ if ($result->ase !== null) {
+ throw $result->ase;
+ }
+ if ($result->pnfe !== null) {
+ throw $result->pnfe;
+ }
+ throw new \Exception("getAllExperimentsInProject failed: unknown result");
}
- public function validateExperiment($airavataExperimentId)
+ public function getAllUserExperiments($userName)
{
- $this->send_validateExperiment($airavataExperimentId);
- return $this->recv_validateExperiment();
+ $this->send_getAllUserExperiments($userName);
+ return $this->recv_getAllUserExperiments();
}
- public function send_validateExperiment($airavataExperimentId)
+ public function send_getAllUserExperiments($userName)
{
- $args = new \Airavata\API\Airavata_validateExperiment_args();
- $args->airavataExperimentId = $airavataExperimentId;
+ $args = new \Airavata\API\Airavata_getAllUserExperiments_args();
+ $args->userName = $userName;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'validateExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getAllUserExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('validateExperiment', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllUserExperiments', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_validateExperiment()
+ public function recv_getAllUserExperiments()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_validateExperiment_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserExperiments_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1312,7 +1333,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_validateExperiment_result();
+ $result = new \Airavata\API\Airavata_getAllUserExperiments_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -1322,47 +1343,43 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ire !== null) {
throw $result->ire;
}
- if ($result->enf !== null) {
- throw $result->enf;
- }
if ($result->ace !== null) {
throw $result->ace;
}
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("validateExperiment failed: unknown result");
+ throw new \Exception("getAllUserExperiments failed: unknown result");
}
- public function launchExperiment($airavataExperimentId, $airavataCredStoreToken)
+ public function createExperiment(\Airavata\Model\Workspace\Experiment\Experiment $experiment)
{
- $this->send_launchExperiment($airavataExperimentId, $airavataCredStoreToken);
- $this->recv_launchExperiment();
+ $this->send_createExperiment($experiment);
+ return $this->recv_createExperiment();
}
- public function send_launchExperiment($airavataExperimentId, $airavataCredStoreToken)
+ public function send_createExperiment(\Airavata\Model\Workspace\Experiment\Experiment $experiment)
{
- $args = new \Airavata\API\Airavata_launchExperiment_args();
- $args->airavataExperimentId = $airavataExperimentId;
- $args->airavataCredStoreToken = $airavataCredStoreToken;
+ $args = new \Airavata\API\Airavata_createExperiment_args();
+ $args->experiment = $experiment;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'launchExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'createExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('launchExperiment', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('createExperiment', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_launchExperiment()
+ public function recv_createExperiment()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_launchExperiment_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_createExperiment_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1376,56 +1393,53 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_launchExperiment_result();
+ $result = new \Airavata\API\Airavata_createExperiment_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
+ if ($result->success !== null) {
+ return $result->success;
+ }
if ($result->ire !== null) {
throw $result->ire;
}
- if ($result->enf !== null) {
- throw $result->enf;
- }
if ($result->ace !== null) {
throw $result->ace;
}
if ($result->ase !== null) {
throw $result->ase;
}
- if ($result->lve !== null) {
- throw $result->lve;
- }
- return;
+ throw new \Exception("createExperiment failed: unknown result");
}
- public function getExperimentStatus($airavataExperimentId)
+ public function getExperiment($airavataExperimentId)
{
- $this->send_getExperimentStatus($airavataExperimentId);
- return $this->recv_getExperimentStatus();
+ $this->send_getExperiment($airavataExperimentId);
+ return $this->recv_getExperiment();
}
- public function send_getExperimentStatus($airavataExperimentId)
+ public function send_getExperiment($airavataExperimentId)
{
- $args = new \Airavata\API\Airavata_getExperimentStatus_args();
+ $args = new \Airavata\API\Airavata_getExperiment_args();
$args->airavataExperimentId = $airavataExperimentId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getExperimentStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getExperimentStatus', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getExperiment', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getExperimentStatus()
+ public function recv_getExperiment()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentStatus_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperiment_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1439,7 +1453,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getExperimentStatus_result();
+ $result = new \Airavata\API\Airavata_getExperiment_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -1458,37 +1472,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getExperimentStatus failed: unknown result");
+ throw new \Exception("getExperiment failed: unknown result");
}
- public function getExperimentOutputs($airavataExperimentId)
+ public function updateExperiment($airavataExperimentId, \Airavata\Model\Workspace\Experiment\Experiment $experiment)
{
- $this->send_getExperimentOutputs($airavataExperimentId);
- return $this->recv_getExperimentOutputs();
+ $this->send_updateExperiment($airavataExperimentId, $experiment);
+ $this->recv_updateExperiment();
}
- public function send_getExperimentOutputs($airavataExperimentId)
+ public function send_updateExperiment($airavataExperimentId, \Airavata\Model\Workspace\Experiment\Experiment $experiment)
{
- $args = new \Airavata\API\Airavata_getExperimentOutputs_args();
+ $args = new \Airavata\API\Airavata_updateExperiment_args();
$args->airavataExperimentId = $airavataExperimentId;
+ $args->experiment = $experiment;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getExperimentOutputs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'updateExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getExperimentOutputs', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('updateExperiment', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getExperimentOutputs()
+ public function recv_updateExperiment()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentOutputs_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateExperiment_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1502,13 +1517,10 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getExperimentOutputs_result();
+ $result = new \Airavata\API\Airavata_updateExperiment_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
- if ($result->success !== null) {
- return $result->success;
- }
if ($result->ire !== null) {
throw $result->ire;
}
@@ -1521,37 +1533,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getExperimentOutputs failed: unknown result");
+ return;
}
- public function getJobStatuses($airavataExperimentId)
+ public function updateExperimentConfiguration($airavataExperimentId, \Airavata\Model\Workspace\Experiment\UserConfigurationData $userConfiguration)
{
- $this->send_getJobStatuses($airavataExperimentId);
- return $this->recv_getJobStatuses();
+ $this->send_updateExperimentConfiguration($airavataExperimentId, $userConfiguration);
+ $this->recv_updateExperimentConfiguration();
}
- public function send_getJobStatuses($airavataExperimentId)
+ public function send_updateExperimentConfiguration($airavataExperimentId, \Airavata\Model\Workspace\Experiment\UserConfigurationData $userConfiguration)
{
- $args = new \Airavata\API\Airavata_getJobStatuses_args();
+ $args = new \Airavata\API\Airavata_updateExperimentConfiguration_args();
$args->airavataExperimentId = $airavataExperimentId;
+ $args->userConfiguration = $userConfiguration;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getJobStatuses', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'updateExperimentConfiguration', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getJobStatuses', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('updateExperimentConfiguration', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getJobStatuses()
+ public function recv_updateExperimentConfiguration()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getJobStatuses_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateExperimentConfiguration_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1565,56 +1578,42 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getJobStatuses_result();
+ $result = new \Airavata\API\Airavata_updateExperimentConfiguration_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->enf !== null) {
- throw $result->enf;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- throw new \Exception("getJobStatuses failed: unknown result");
+ return;
}
- public function getJobDetails($airavataExperimentId)
+ public function updateResourceScheduleing($airavataExperimentId, \Airavata\Model\Workspace\Experiment\ComputationalResourceScheduling $resourceScheduling)
{
- $this->send_getJobDetails($airavataExperimentId);
- return $this->recv_getJobDetails();
+ $this->send_updateResourceScheduleing($airavataExperimentId, $resourceScheduling);
+ $this->recv_updateResourceScheduleing();
}
- public function send_getJobDetails($airavataExperimentId)
+ public function send_updateResourceScheduleing($airavataExperimentId, \Airavata\Model\Workspace\Experiment\ComputationalResourceScheduling $resourceScheduling)
{
- $args = new \Airavata\API\Airavata_getJobDetails_args();
+ $args = new \Airavata\API\Airavata_updateResourceScheduleing_args();
$args->airavataExperimentId = $airavataExperimentId;
+ $args->resourceScheduling = $resourceScheduling;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getJobDetails', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'updateResourceScheduleing', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getJobDetails', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('updateResourceScheduleing', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getJobDetails()
+ public function recv_updateResourceScheduleing()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getJobDetails_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateResourceScheduleing_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1628,56 +1627,41 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getJobDetails_result();
+ $result = new \Airavata\API\Airavata_updateResourceScheduleing_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->enf !== null) {
- throw $result->enf;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- throw new \Exception("getJobDetails failed: unknown result");
+ return;
}
- public function getDataTransferDetails($airavataExperimentId)
+ public function validateExperiment($airavataExperimentId)
{
- $this->send_getDataTransferDetails($airavataExperimentId);
- return $this->recv_getDataTransferDetails();
+ $this->send_validateExperiment($airavataExperimentId);
+ return $this->recv_validateExperiment();
}
- public function send_getDataTransferDetails($airavataExperimentId)
+ public function send_validateExperiment($airavataExperimentId)
{
- $args = new \Airavata\API\Airavata_getDataTransferDetails_args();
+ $args = new \Airavata\API\Airavata_validateExperiment_args();
$args->airavataExperimentId = $airavataExperimentId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getDataTransferDetails', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'validateExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getDataTransferDetails', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('validateExperiment', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getDataTransferDetails()
+ public function recv_validateExperiment()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getDataTransferDetails_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_validateExperiment_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1691,7 +1675,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getDataTransferDetails_result();
+ $result = new \Airavata\API\Airavata_validateExperiment_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -1710,38 +1694,38 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getDataTransferDetails failed: unknown result");
+ throw new \Exception("validateExperiment failed: unknown result");
}
- public function cloneExperiment($existingExperimentID, $newExperimentName)
+ public function launchExperiment($airavataExperimentId, $airavataCredStoreToken)
{
- $this->send_cloneExperiment($existingExperimentID, $newExperimentName);
- return $this->recv_cloneExperiment();
+ $this->send_launchExperiment($airavataExperimentId, $airavataCredStoreToken);
+ $this->recv_launchExperiment();
}
- public function send_cloneExperiment($existingExperimentID, $newExperimentName)
+ public function send_launchExperiment($airavataExperimentId, $airavataCredStoreToken)
{
- $args = new \Airavata\API\Airavata_cloneExperiment_args();
- $args->existingExperimentID = $existingExperimentID;
- $args->newExperimentName = $newExperimentName;
+ $args = new \Airavata\API\Airavata_launchExperiment_args();
+ $args->airavataExperimentId = $airavataExperimentId;
+ $args->airavataCredStoreToken = $airavataCredStoreToken;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'cloneExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'launchExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('cloneExperiment', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('launchExperiment', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_cloneExperiment()
+ public function recv_launchExperiment()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_cloneExperiment_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_launchExperiment_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1755,13 +1739,10 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_cloneExperiment_result();
+ $result = new \Airavata\API\Airavata_launchExperiment_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
- if ($result->success !== null) {
- return $result->success;
- }
if ($result->ire !== null) {
throw $result->ire;
}
@@ -1774,37 +1755,40 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("cloneExperiment failed: unknown result");
+ if ($result->lve !== null) {
+ throw $result->lve;
+ }
+ return;
}
- public function terminateExperiment($airavataExperimentId)
+ public function getExperimentStatus($airavataExperimentId)
{
- $this->send_terminateExperiment($airavataExperimentId);
- $this->recv_terminateExperiment();
+ $this->send_getExperimentStatus($airavataExperimentId);
+ return $this->recv_getExperimentStatus();
}
- public function send_terminateExperiment($airavataExperimentId)
+ public function send_getExperimentStatus($airavataExperimentId)
{
- $args = new \Airavata\API\Airavata_terminateExperiment_args();
+ $args = new \Airavata\API\Airavata_getExperimentStatus_args();
$args->airavataExperimentId = $airavataExperimentId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'terminateExperiment', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getExperimentStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('terminateExperiment', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getExperimentStatus', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_terminateExperiment()
+ public function recv_getExperimentStatus()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_terminateExperiment_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentStatus_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1818,10 +1802,13 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_terminateExperiment_result();
+ $result = new \Airavata\API\Airavata_getExperimentStatus_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
+ if ($result->success !== null) {
+ return $result->success;
+ }
if ($result->ire !== null) {
throw $result->ire;
}
@@ -1834,37 +1821,37 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- return;
+ throw new \Exception("getExperimentStatus failed: unknown result");
}
- public function registerApplicationModule(\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule)
+ public function getExperimentOutputs($airavataExperimentId)
{
- $this->send_registerApplicationModule($applicationModule);
- return $this->recv_registerApplicationModule();
+ $this->send_getExperimentOutputs($airavataExperimentId);
+ return $this->recv_getExperimentOutputs();
}
- public function send_registerApplicationModule(\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule)
+ public function send_getExperimentOutputs($airavataExperimentId)
{
- $args = new \Airavata\API\Airavata_registerApplicationModule_args();
- $args->applicationModule = $applicationModule;
+ $args = new \Airavata\API\Airavata_getExperimentOutputs_args();
+ $args->airavataExperimentId = $airavataExperimentId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'registerApplicationModule', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getExperimentOutputs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('registerApplicationModule', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getExperimentOutputs', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_registerApplicationModule()
+ public function recv_getExperimentOutputs()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_registerApplicationModule_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentOutputs_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1878,7 +1865,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_registerApplicationModule_result();
+ $result = new \Airavata\API\Airavata_getExperimentOutputs_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -1888,43 +1875,46 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ire !== null) {
throw $result->ire;
}
+ if ($result->enf !== null) {
+ throw $result->enf;
+ }
if ($result->ace !== null) {
throw $result->ace;
}
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("registerApplicationModule failed: unknown result");
+ throw new \Exception("getExperimentOutputs failed: unknown result");
}
- public function getApplicationModule($appModuleId)
+ public function getJobStatuses($airavataExperimentId)
{
- $this->send_getApplicationModule($appModuleId);
- return $this->recv_getApplicationModule();
+ $this->send_getJobStatuses($airavataExperimentId);
+ return $this->recv_getJobStatuses();
}
- public function send_getApplicationModule($appModuleId)
+ public function send_getJobStatuses($airavataExperimentId)
{
- $args = new \Airavata\API\Airavata_getApplicationModule_args();
- $args->appModuleId = $appModuleId;
+ $args = new \Airavata\API\Airavata_getJobStatuses_args();
+ $args->airavataExperimentId = $airavataExperimentId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getApplicationModule', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getJobStatuses', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getApplicationModule', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getJobStatuses', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getApplicationModule()
+ public function recv_getJobStatuses()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getApplicationModule_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getJobStatuses_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -1938,7 +1928,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getApplicationModule_result();
+ $result = new \Airavata\API\Airavata_getJobStatuses_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -1948,44 +1938,46 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ire !== null) {
throw $result->ire;
}
+ if ($result->enf !== null) {
+ throw $result->enf;
+ }
if ($result->ace !== null) {
throw $result->ace;
}
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getApplicationModule failed: unknown result");
+ throw new \Exception("getJobStatuses failed: unknown result");
}
- public function updateApplicationModule($appModuleId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule)
+ public function getJobDetails($airavataExperimentId)
{
- $this->send_updateApplicationModule($appModuleId, $applicationModule);
- return $this->recv_updateApplicationModule();
+ $this->send_getJobDetails($airavataExperimentId);
+ return $this->recv_getJobDetails();
}
- public function send_updateApplicationModule($appModuleId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule)
+ public function send_getJobDetails($airavataExperimentId)
{
- $args = new \Airavata\API\Airavata_updateApplicationModule_args();
- $args->appModuleId = $appModuleId;
- $args->applicationModule = $applicationModule;
+ $args = new \Airavata\API\Airavata_getJobDetails_args();
+ $args->airavataExperimentId = $airavataExperimentId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'updateApplicationModule', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getJobDetails', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('updateApplicationModule', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getJobDetails', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_updateApplicationModule()
+ public function recv_getJobDetails()
{
$bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateApplicationModule_result', $this->input_->isStrictRead());
+
<TRUNCATED>